-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcodegen.ts
More file actions
27 lines (25 loc) · 1004 Bytes
/
codegen.ts
File metadata and controls
27 lines (25 loc) · 1004 Bytes
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
import type { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
overwrite: true,
generates: {
'graphql/generated/user-info.ts': {
schema:
'https://gateway.thegraph.com/api/3a78a20e9f74b2cecd6a4f0fc41bcafe/subgraphs/id/4aYLWHVUj975bLeY4zR32YgY4zxnJuEjJbT99eu2wyVd',
documents: ['graphql/queries/user-info.ts', 'graphql/queries/exchangeRate.ts'],
plugins: ['typescript', 'typescript-operations', 'typed-document-node'],
},
'graphql/generated/algebra-info.ts': {
schema:
'https://gateway.thegraph.com/api/3a78a20e9f74b2cecd6a4f0fc41bcafe/subgraphs/id/7mTMzJM4W2a1sVkwYLYmMGnR2D3BLAhUxVKaqaxTRVQb',
documents: [
'graphql/queries/algebraInfo.ts',
'graphql/queries/pools.ts',
'graphql/queries/tokens.ts',
'graphql/queries/global.ts',
],
plugins: ['typescript', 'typescript-operations', 'typed-document-node'],
},
},
ignoreNoDocuments: true,
};
export default config;