The object that will be changed by a mutation contains a permissions
array that contains user
objects that consist of a userId
and a write
permission boolean. If a user's userId
is present in the list, the user has read permission on the object. If write
is set to true, the user also has write permission.
This makes modifying the object easier from a mutation perspective, but it makes handling subscriptions much more difficult, since I don't have access to the object being updated at subscription creation. Thus, I am unable to ensure that user's will only get updates to the object if they have the appropriate permissions.
I don't think it makes a difference (since I can't handle this on the client-side securely), but I'm building a React web client.
Is there any feasible way around this?