Cannot load types #5252
Unanswered
paola-guitian-papa
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi @paola-guitian-papa |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to set up graphql-code-generator for my React-Apollo-Client application. I set up graphl-code-generator using the initialization wizard.
I am having trouble getting the paths for my
documents
field. My understanding based on the docs is that "The documents field should point to your GraphQL documents: query, mutation, subscription and fragment". My file structure for my queries and mutations is as follows:src/utils/graphql/mutations/index
src/utils/graphql/queries/index
therefore I set up my documents field to look like this:
codegen.json:
However, I get the following error:
It seems to not find my gql definitions even though they are located in the files and the relative path is correct
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions