-
Notifications
You must be signed in to change notification settings - Fork 2
/
codegen.ts
36 lines (34 loc) · 976 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
35
36
import type { CodegenConfig } from "@graphql-codegen/cli";
const config = {
avoidOptionals: true,
immutableTypes: true,
defaultScalarType: "string",
};
const codegenConfig: CodegenConfig = {
generates: {
"./src/gql/uniswapV2/": {
schema:
"https://api.thegraph.com/subgraphs/name/sushiswap/exchange-arbitrum-backup",
documents: "src/services/graphql/uniswapV2.graphql",
preset: "client",
config,
plugins: [],
},
"./src/gql/uniswapV3/": {
schema: "https://api.thegraph.com/subgraphs/name/ianlapham/arbitrum-dev",
documents: "src/services/graphql/uniswapV3.graphql",
preset: "client",
config,
plugins: [],
},
"./src/gql/numoen/": {
schema:
"https://api.thegraph.com/subgraphs/name/kyscott18/numoen-arbitrum",
documents: "src/services/graphql/numoen.graphql",
preset: "client",
config,
plugins: [],
},
},
};
export default codegenConfig;