-
Notifications
You must be signed in to change notification settings - Fork 108
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
Fragments not working - missing fields in root #91
Labels
Comments
Did you use |
Yes. |
Yes, this is a copy of this example, with the only change in |
Looks to be caused by this one: ardatan/graphql-tools#605 |
@schickling seems like it's working now! Great job 🙂 |
@maticzav I can't get this working. What package versions are you using? |
Hey @lnmunhoz 👋, I am using GraphQL Yoga 1.16.2. If you make a reproduction repo, I can help you figure this out! 🙂 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behaviour:
Fields defined in
fragments
are automatically prepended toinfo
query.Actual behaviour:
Fields defined in
fragments
are not automatically prepended toinfo
query, which causes certain resolvers to return wrong data.Recreation:
numRatings
is always zero, becauseid
is undefined.Example of
parent
log:The text was updated successfully, but these errors were encountered: