Where __SERVICE_ID__ is the service id and __TOKEN__ is the platform token from ~/.graphcoolrc.
Response:
{
"code": 3008,
"requestId": "local:simple:cjbgk7pxj003g0186u59ldoie",
"error": "Insufficient permissions for this query"
}
Expected behavior?
Query should be evaluated and either true or false is returned.
Workaround
A possible work around for now is to deploy a dummy service with the same schema remotely, because the available permissions only depend on the schema.
Issue by marktani Thursday Dec 21, 2017 at 14:09 GMT Originally opened as https://github.com/graphcool/prisma/issues/1439
Current behavior
Local simple endpoint does not expose permission schema
Reproduction
Replace the wildcard permission in
graphcool.yml
with this:Where
__SERVICE_ID__
is the service id and__TOKEN__
is the platform token from~/.graphcoolrc
.Response:
Expected behavior?
Query should be evaluated and either
true
orfalse
is returned.Workaround
A possible work around for now is to deploy a dummy service with the same schema remotely, because the available permissions only depend on the schema.