-
Notifications
You must be signed in to change notification settings - Fork 1
/
graphql.config.js
43 lines (42 loc) · 1.12 KB
/
graphql.config.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/** @type {import ('@graphql-codegen/cli').CodegenConfig} */
const config = {
schema: [
{
// 'http://localhost:4001/graphql': {},
// 'https://chainflip-cache.staging/graphql': {},
'https://chainflip-cache-backspin.staging/graphql': {},
},
{
// 'http://localhost:3001/graphql': {},
// 'https://processor.staging/graphql': {},
'https://processor-backspin.staging/graphql': {},
},
{
// 'https://chainflip-lp-service.sisyphos.staging/graphql': {},
'https://chainflip-lp-service.backspin.staging/graphql': {},
},
],
documents: ['src/**/*.ts'],
emitLegacyCommonJSImports: false,
hooks: { afterAllFileWrite: ['prettier --write'] },
generates: {
'src/graphql/generated/': {
preset: 'client-preset',
presetConfig: {
gqlTagName: 'gql',
fragmentMasking: false,
},
config: {
enumsAsTypes: true,
scalars: {
DateTime: 'string',
Datetime: 'string',
Decimal: 'string',
BigInt: 'string',
BigFloat: 'string',
},
},
},
},
};
export default config;