forked from liteflow-labs/starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codegen.yml
30 lines (30 loc) · 783 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
schema: './node_modules/@nft/api-graphql/schema.graphql'
documents:
- './pages/**/*.gql'
- './components/**/*.gql'
- './layouts/**/*.gql'
- './hooks/**/*.gql'
generates:
graphql.ts:
plugins:
- 'typescript'
- 'typescript-operations'
- 'typescript-react-apollo'
config:
avoidOptionals: true
enumsAsTypes: true
config:
scalars:
URI: 'URI'
UUID: 'UUID'
Datetime: 'Date' # FIXME: wrong type, it's actually a string
Cursor: 'string'
JSON: '{ [key: string]: any }'
Uint256: 'string'
Int256: 'string'
Address: 'string'
TransactionHash: 'string'
BigFloat: 'string'
# BigInt: 'string' # FIXME: this breaks the build. Need to fix the type in the codebase
Bytes32: 'string'
FullText: 'string'