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'm writing a transformer for incoming user queries to remove certain nodes if they do not have permission to access them.
I'm having to figure that path of each accessed variable to map back to the schema to check if it has a specific directive there.
If one of the selection nodes is an inline fragment, I'm seeing that the typeCondition member is optional, but in all descriptions of the language I've seen online, I cannot find a case where this might happen. Does anyone happen to know the cases where it could be undefined?
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'm writing a transformer for incoming user queries to remove certain nodes if they do not have permission to access them.
I'm having to figure that path of each accessed variable to map back to the schema to check if it has a specific directive there.
If one of the selection nodes is an inline fragment, I'm seeing that the
typeCondition
member is optional, but in all descriptions of the language I've seen online, I cannot find a case where this might happen. Does anyone happen to know the cases where it could be undefined?Beta Was this translation helpful? Give feedback.
All reactions