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
Consider these simplified schemas from the interface extension example where Subgraph B extends the Media interface and hence the implementing Book type from Subgraph A with an extra review field.
the query fails silently with the data being null, no error in the response and no error in the router logs but an extension in the response
{"data":null,"extensions":{"valueCompletion":[{"message":"Cannot return null for non-nullable array element of type Media at index 0","path":["topRatedMedia",0]},{"message":"Cannot return null for non-nullable field [Media!]!.topRatedMedia","path":["topRatedMedia"]}]}}
Issue Description
Consider these simplified schemas from the interface extension example where Subgraph B extends the Media interface and hence the implementing Book type from Subgraph A with an extra
review
field.One can query for Media with
title
from Subgraph A andreview
from Subgraph B like thisOne can use a fragment to get the
review
field only for Book types in case there are more implementations of the Media interfaceHowever, if
__typename
fields are added to the previous query (which is what the Apollo Client would do)the query fails silently with the data being
null
, no error in the response and no error in the router logs but an extension in the responseLink to Reproduction
https://codesandbox.io/p/devbox/nervous-silence-5rpvys
Steps to reproduce
Open the sandbox link above and try the different queries
The text was updated successfully, but these errors were encountered: