New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query including fragments return null #1290
Comments
for info we are using router-v0.9.3 |
same issue in v0.9.5 |
thanks! That looks like #1286, no? |
could you give more information on the types and the data returned by the subgraph? |
@xsoufiane does this look like the schema you are working with? |
thank you @Geal yes it's the same 🤩 |
Great, then I have a good idea of the cause. May I ask why you go through a fragment then an interface on the query object? This feels a bit weird to me so there's probably a use case I don't know about |
also not sure why, those interfaces are implemented by other types, and the fragments maybe to not repeat the same code. Probably @yanns can tell more about this.
seems related 🤔 |
Yes we use interfaces on query so that one can re-use the same queries on the top field, or on another sub-field:
|
While this is an open issue. Is there a reason router silently returns null instead of propagating an exception or something? I have another case where router returns null (not related to fragments) and the lack of details hurts my soul |
thank you @Geal |
Describe the bug
We have a query using fragments
the router returns data:null for it, although the sub-service returns a valid non-null response. We are assuming that there is an issue in assembling the response. The query plan for the query is:
Expected behavior
router should be able to assemble the response and return non-null data.
The text was updated successfully, but these errors were encountered: