-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.codegen.js
27 lines (27 loc) · 912 Bytes
/
.codegen.js
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
module.exports = {
schema:
process.env.NODE_ENV === 'production' ? 'https://api.aiera.com/graphql' : 'https://api-dev.aiera.com/graphql',
documents: ['./src/**/*.tsx', './src/**/*.ts', '!src/**/*test.{ts,tsx}'],
overwrite: true,
generates: {
'./src/types/generated.ts': {
plugins: [
{ add: { content: '/* eslint-disable @typescript-eslint/no-explicit-any */' } },
'typescript',
'typescript-operations',
'typescript-urql',
],
config: {
defaultScalarType: 'unknown',
scalars: {
Time: 'string',
DateTime: 'string',
},
skipTypename: false,
withHooks: false,
withHOC: false,
withComponent: false,
},
},
},
};