-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.yml
More file actions
48 lines (47 loc) · 1.21 KB
/
codegen.yml
File metadata and controls
48 lines (47 loc) · 1.21 KB
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
39
40
41
42
43
44
45
46
47
48
overwrite: true
schema:
[
{
'https://zrc0ywxd4f.execute-api.us-east-1.amazonaws.com/dev-flipted/graphql':
{ headers: { Authorization: ${AUTH_TOKEN} } },
},
]
documents:
- src/**/*.graphql
generates:
src/__generated__/types.ts:
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'
config:
declarationKind:
union: type
type: type
input: type
scalar: type
arguments: type
interface: interface
scalars:
Date: Date
constEnums: false
enumsAsTypes: false
numericEnums: false
futureProofEnums: false
enumsAsConst: false
onlyOperationTypes: false
immutableTypes: false
maybeValue: T | null | undefined
noExport: false
enumPrefix: true
fieldWrapperValue: T
wrapFieldDefinitions: false
typesPrefix: ''
skipTypename: true
nonOptionalTypename: true
useTypeImports: false
withHooks: true
preResolveTypes: true
./graphql.schema.json:
plugins:
- 'introspection'