-
Hi 👋 I'm having issues with the I'd like to generate the interfaces of my query from a Is there a way to define what the entire output file is going to look like? This is the way my schema: "http://127.0.0.1:5001/graphql/v3"
documents:
- "**/*.{graphql,gql,svelte}"
generates:
src/lib/graphql/types.ts:
plugins:
- typescript
src/:
preset: near-operation-file
presetConfig:
extension: .generated.ts
baseTypesPath: types.ts
plugins:
- typescript-operations |
Beta Was this translation helpful? Give feedback.
Answered by
AndreasPB
May 25, 2023
Replies: 1 comment
-
For the next person that also forgets to read the docs: Sorry 😅 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AndreasPB
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the next person that also forgets to read the docs:
https://the-guild.dev/graphql/codegen/plugins/presets/near-operation-file-preset#filename
Sorry 😅