Cannot query field 'SomeUserExists' on type 'Query'


I’m trying to experiment with permission queries but the generated permission schema does not seem to exist.

I currently have one User :

type User @model {
id: ID! @isUnique
name: String
role: UserRole!
auth0UserId: String! @isUnique
accessGroups: [AccessGroup!]! @relation(name: “AccessGroupMembers”)

When I curl…

curl -H ‘Authorization: Bearer xxx’ -H ‘Content-Type:application/json’ -d ‘{“query”:"{SomeUserExists}"}’

I get the following output…

{“data”:null,“errors”:[{“message”:“Cannot query field ‘SomeUserExists’ on type ‘Query’. (line 1, column 2):\n{SomeUserExists}\n ^”,“locations”:[{“line”:1,“column”:2}]}]}

What am I missing here?


I went through this. Basically you have to make sure that you are using a special type of tab in Graphcool Playground. To get one of these you have to hit the little Key/Lock in the top right hand corner of the window. If you don’t see it then chances are you have an old DMG/executable file (I was at 1.0.2) or haven’t run graphcool login yet which gets your platform token.

Basically go here to make sure you have the latest version of the playground executable:

Next time you run graphcool deploy && graphcool playground the key should show up so you can open a special tab to make permissions calls.


@jimthedev - Great advice, followed your steps and everything works fine now. Thank you!


Glad that worked for you. :+1:t3: