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
Hi, I have a login mutation which returns a User. I have a fallbackRule set to isLoggedIn and the login mutation set to allow but when I run the mutation I get unauthorized cause of User using the fallback rule. How can I allow the user to be returned only for the login mutation?
shield({Mutation: {login: allow// this returns unauthorized because of the fallbackRule!},User: allow// I don't want to do this},{fallbackRule: isLoggedIn})
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
-
Hi, I have a login mutation which returns a User. I have a fallbackRule set to
isLoggedIn
and the login mutation set toallow
but when I run the mutation I getunauthorized
cause of User using the fallback rule. How can I allow the user to be returned only for the login mutation?Beta Was this translation helpful? Give feedback.
All reactions