-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcodegen.ts
34 lines (32 loc) · 925 Bytes
/
codegen.ts
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
import type { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
overwrite: true,
schema: [
'https://subgraph.satsuma-prod.com/7ae15f9faae2/scopelift/l2-flexible-voting-governor-goerli/api',
'https://subgraph.satsuma-prod.com/7ae15f9faae2/scopelift/l2-flexible-voting-vote-aggregator/api',
],
documents: './graphql/**/(!(*.d)).graphql',
generates: {
'./graphql/generated/graphql.tsx': {
config: {
reactQueryVersion: 5,
scalars: {
ID: {
input: 'string',
output: 'string | number',
},
addrress: {
input: 'string',
output: 'string',
},
BigInt: {
input: 'string',
output: 'string',
},
},
},
plugins: ['typescript', 'typescript-operations', 'typescript-react-query'],
},
},
};
export default config;