xref: /expo/home/graphql-codegen.yml (revision cd4bd26b)
1overwrite: true
2schema: 'https://exp.host/--/graphql'
3documents:
4  - '**/*.graphql'
5  - '!node_modules/**/*'
6generates:
7  graphql/types.ts:
8    plugins:
9      - typescript
10  graphql/:
11    preset: near-operation-file
12    presetConfig:
13      baseTypesPath: types.ts
14    config:
15      withHooks: true
16      withComponent: false
17      withHOC: false
18      withMutationFn: false
19      withRefetchFn: true
20      addDocBlocks: false
21      reactApolloVersion: 3
22      preResolveTypes: true
23      dedupeOperationSuffix: true
24    plugins:
25      - typescript-operations
26      - typescript-react-apollo
27