near-operation-file preset doesn't add fragment import #7313
Replies: 1 comment
-
hi @AndrzejSala , this seems like an issue/bug. Please report under Issues with a reproduction. Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following entry in
generates
in my graphql.codegen.yml:my operation file:
And generated .tsx:
I wonder why in
generated.tsx
there is no import with fragments, even if I added in codegenimportAllFragmentsFrom: '~@tutoring/graphql-schema-fragments'
I suppose to have something like:
import * as Fragments from '@tutoring/graphql-schema-fragments';
and use it like
${Fragments.ChatMessageFragmentFragmentDoc}
Beta Was this translation helpful? Give feedback.
All reactions