-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yml
30 lines (30 loc) · 882 Bytes
/
codegen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
overwrite: true
schema: 'src/graphql/schema.json'
documents: './src/graphql/*.graphql'
watchConfig:
usePolling: true
interval: 1000
generates:
src/services/types.generated.ts:
plugins:
- typescript
- typescript-resolvers
src/:
presetConfig:
baseTypesPath: src/app/services/types.generated.ts
plugins:
- add:
content: >
/* eslint-disable */
/**
*
* THIS FILE IS AUTOGENERATED, DO NOT EDIT IT!
*
* instead, edit one of the `.graphql` files in this project and run
*
* npm run graphql-codegen
*
* for this file to be re-created
*/
config:
maybeValue: T # normally, this would be T | null, but our msw mock returns everything as nullable, so we want to force these as non-nullable