-
Notifications
You must be signed in to change notification settings - Fork 0
/
apiCodegen.yml
38 lines (38 loc) · 968 Bytes
/
apiCodegen.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
31
32
33
34
35
36
37
38
overwrite: true
schema: ['http://localhost:3000/graphql']
documents: ['src/graphql/internal/client/**/*.graphql']
config:
strictScalars: false
declarationKind: type
scalars:
BigNumber: string
DateTime: string
bigint: string
Time: string
skipTypename: true
numericEnums: true
useTypeImports: true
# Apollo
withRefetchFn: true
pureMagicComment: true
namingConvention: { enumValues: 'change-case-all#upperCase' }
generates:
src/graphql/internal/client/generated/Types.ts:
plugins:
- typescript
src/graphql/internal/client:
preset: near-operation-file
presetConfig:
extension: .generated.ts
baseTypesPath: generated/Types.ts
folder: ../generated
plugins:
- typescript-operations
- typescript-react-apollo
src/graphql/internal/client/generated/introspection.json:
plugins:
- introspection
config: { minify: true }
hooks:
afterAllFileWrite:
- prettier --write