forked from pinto-org/interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.ts
More file actions
33 lines (31 loc) · 875 Bytes
/
codegen.ts
File metadata and controls
33 lines (31 loc) · 875 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
28
29
30
31
32
33
import type { CodegenConfig } from "@graphql-codegen/cli";
const config: CodegenConfig = {
ignoreNoDocuments: true,
generates: {
"src/generated/gql/pintostalk/": {
schema: "https://graph.pinto.money/pintostalk",
documents: ["src/queries/beanstalk/**/*.graphql"],
preset: "client",
presetConfig: {
fragmentMasking: false,
},
},
"src/generated/gql/pinto/": {
schema: "https://graph.pinto.money/pinto",
documents: ["src/queries/bean/**/*.graphql"],
preset: "client",
presetConfig: {
fragmentMasking: false,
},
},
"src/generated/gql/exchange/": {
schema: "https://graph.pinto.money/exchange",
documents: ["src/queries/basin/**/*.graphql"],
preset: "client",
presetConfig: {
fragmentMasking: false,
},
},
},
};
export default config;