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
When using documentMode: "string" with @graphql-codegen/client-preset, in case of nested fragments, only the first level of fragments are included in the final query.
Which packages are impacted by your issue?
@graphql-codegen/client-preset
Describe the bug
When using
documentMode: "string"
with @graphql-codegen/client-preset, in case of nested fragments, only the first level of fragments are included in the final query.The Github repo reproduces the issue clearly.
Your Example Website or App
https://github.com/stefanoverna/codegen-string-bug
Steps to Reproduce the Bug or Issue
Notice that the output on the page is just:
So, MovieFragment and EpisodeFragment are missing.
Expected behavior
MovieFragment
andEpisodeFragment
should be part of the query.Screenshots or Videos
No response
Platform
graphql
version: 16.6.0@graphql-codegen/client-preset
version: 3.0.1Codegen Config File
export default config;
Additional context
No response
The text was updated successfully, but these errors were encountered: