Skip to content

Apollo client and __typename #234

@plmercereau

Description

@plmercereau

Hello Hasura team!
First of all, many thanks and congrats on the wonderful work you did to deliver his engine (and of course your platform!)
I am running a cluster on v0.15.34 and try to connect to the data graphql endpoint (running on graphql-engine then).
I cannot run a query with '__typename' in it, for example:

query Profile {
  profile {
    id
    first_name
    __typename
  }
}

it sends me back that I have no permission to access '__typename' column:

{
  "errors": [
    {
      "path": "$[0].args.columns[2]",
      "error": "no such column exists : \"__typename\"",
      "code": "permission-denied"
    }
  ]
}

I assume the use of __typename is not implemented, but this is a big problem to me, as the entire apollo case system relies on the use of this property...
Have I missed something? If not, any plan to add this into your product?
Once again, many thanks for this project, I dreamt of it and you are making it real!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions