-
-
Notifications
You must be signed in to change notification settings - Fork 818
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
Stitcher does not resolve when using fragment in query #1031
Comments
I am pretty sure this is because |
Not sure about this one, possibly solved, vs I am missing something. Closing for now, please reopen if relevant with a minimally reproducing repository based on above. |
@yaacovCR seems to happen still on version when i query data from a stitched schema using fragments, i get null as result, wheras if i dont use fragments, i get the proper data: does not work:
does work:
|
This would be a serious bug that I would want to fix asap. Can you reopen as a new issue with a full minimal example either within the issue or as a separate GitHub repository? Even better would be a PR with a failing test case. I believe we have some tests with fragments, so I am surprised this is not working, but a gaping hole in our test coverage would also not be a surprise... |
i could solve it. For reference: It happened because i applied a transform using
If you do so, be careful with
and then
|
When stitching two services together that use (near) equal types the resolve function won't function properly.
Below you'll find an example setup. When running the query
t1
will return the correct response, howevert2
will return null and not reach theShop
service. I can see that is goes trough the custom resolver, and that the query is build.What's odd is that for
t2
thedelegateToSchema
will be called twice (once from the resolver and once from the graphql execute). And the second time it does not have the (correct) params.I know its better to use
Shop_Book
as a result type, but in this case it should not matter as they are equal, and makes it easier for a single fragment.Shop
Schema
Transforms
Library
Schema
Transforms
Links
Resolver
Query
The text was updated successfully, but these errors were encountered: