-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcodegen.ts
36 lines (34 loc) · 1.16 KB
/
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 { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
generates: {
'./src/graph-ql/queries/muzik/__generated__/': {
preset: 'client',
plugins: [],
presetConfig: {
gqlTagName: 'gql',
},
documents: ['src/graph-ql/queries/muzik/**/*.ts'],
schema: "https://api.thegraph.com/subgraphs/name/thisisommore/muzik",
},
'./src/graph-ql/queries/spinamp/__generated__/': {
preset: 'client',
plugins: [],
presetConfig: {
gqlTagName: 'gql',
},
documents: ['src/graph-ql/queries/spinamp/**/*.ts'],
schema: "https://api.spinamp.xyz/v3/graphql"
},
'./src/graph-ql/queries/octav3/__generated__/': {
preset: 'client',
plugins: [],
presetConfig: {
gqlTagName: 'gql',
},
documents: ['src/graph-ql/queries/octav3/**/*.ts'],
schema: "https://api.thegraph.com/subgraphs/name/thisisommore/octav3"
},
},
ignoreNoDocuments: true,
};
export default config;