I'm subscribed to this via websockets in my app. Whenever I delete a node of type MyEntity, the subscription triggers, but I get an error Insufficient permissions. The detail of the error indicates that I don't have permission to read previousValues.id.
I changed my permission queries to allow anyone to read MyEntity but this still resulted in the Insufficient permissions error.
Expected behavior?
My expectation is that if I can read an item with a normal query then I should be able to fetch the previousValues fields via subscription when it is deleted.
Issue by rajit Friday Dec 22, 2017 at 01:16 GMT Originally opened as https://github.com/graphcool/prisma/issues/1444
For bug reports, please fill in the next sections:
Current behavior
I have a subscription along the lines of:
I'm subscribed to this via websockets in my app. Whenever I delete a node of type
MyEntity
, the subscription triggers, but I get an errorInsufficient permissions
. The detail of the error indicates that I don't have permission to readpreviousValues.id
.I changed my permission queries to allow anyone to read
MyEntity
but this still resulted in theInsufficient permissions
error.Expected behavior?
My expectation is that if I can read an item with a normal
query
then I should be able to fetch thepreviousValues
fields via subscription when it is deleted.Thanks in advance!