Skip to content

graphql.ts missing DocumentTypeDecoration reference #10095

Closed Answered by rupe120
rupe120 asked this question in Q&A
Discussion options

You must be logged in to vote

I resolved this a while ago and I don't remember exactly the issue but it appears that I was missing the required generates.plugins setting. I also decided to just generate the types as opposed to the client, but that may have just been what I got to work finally and moved on without trying generates.preset: 'client' in addition.

If that was the issue, the example at the top of the documentation page should probably be updated to include setting generates.plugins.

https://the-guild.dev/graphql/codegen/docs/config-reference/codegen-config

This is basically what my working config looks like.

const apiKey = process.env.API_KEY!;
const url = process.env.API_URL!;

const requestConfig = {}
req…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rupe120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant