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
If I have a type Post and it has a field author which is an interface (PostAuthor), a type which implements the PostAuthor interface leaks all of the other interfaces it implements into the post.author field. I was surprised this is considered valid by GraphQL, is this expected behavior?
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
-
If I have a type
Post
and it has a fieldauthor
which is an interface (PostAuthor
), a type which implements thePostAuthor
interface leaks all of the other interfaces it implements into thepost.author
field. I was surprised this is considered valid by GraphQL, is this expected behavior?This is a valid query:
If you comment out the
type Author
in the schema, this query is no longer validBeta Was this translation helpful? Give feedback.
All reactions