forked from cryptoalgebra/integral-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodegen.ts
26 lines (24 loc) · 892 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
import type { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
overwrite: true,
schema: [
'https://api.goldsky.com/api/public/project_clroqsly50az501z69zgz01qa/subgraphs/bera-analytics/1.0.0/gn',
'https://api.goldsky.com/api/public/project_clroqsly50az501z69zgz01qa/subgraphs/bera-blocks/1.0.0/gn',
'https://api.goldsky.com/api/public/project_clroqsly50az501z69zgz01qa/subgraphs/bera-farms/1.0.0/gn',
],
documents: 'src/graphql/queries/!(*.d).{ts,tsx}',
generates: {
'src/graphql/generated/graphql.tsx': {
plugins: [
'typescript',
'typescript-operations',
'typescript-react-apollo',
],
config: {
withHooks: true,
withResultType: true,
},
},
},
};
export default config;