You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have type SomeEntity in schema with field isPrivate.
It is protected with @auth directive, which allows create operation for everyone and read only for owners:
Now I'm thinking how to allow read operation for ovner if isPrivate == true and allowed for everyone if isPrivate == false.
Is it possible to do using schema only or I need custom Lambda resolver for this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have
type SomeEntity
in schema with fieldisPrivate
.It is protected with
@auth
directive, which allowscreate
operation for everyone andread
only for owners:Now I'm thinking how to allow
read
operation for ovner ifisPrivate == true
and allowed for everyone ifisPrivate == false
.Is it possible to do using schema only or I need custom Lambda resolver for this?
Beta Was this translation helpful? Give feedback.
All reactions