-
Notifications
You must be signed in to change notification settings - Fork 3
/
.graphqlrc.ts
38 lines (36 loc) · 857 Bytes
/
.graphqlrc.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
37
38
import type { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
schema: 'https://shopify.dev/admin-graphql-direct-proxy',
documents: ['src/cli/**/*.ts', 'src/client/**/*.ts'],
generates: {
// 'src/graphql/gen/types.ts': {
// plugins: ['typescript', 'typescript-operations'],
// config: {
// avoidOptionals: {
// field: true,
// inputValue: false,
// object: true,
// defaultValue: true,
// },
// useTypeImports: true,
// skipTypename: true,
// preResolveTypes: false,
// },
// },
'src/graphql/gen/': {
preset: 'client',
config: {
avoidOptionals: {
field: true,
inputValue: false,
object: true,
defaultValue: true,
},
useTypeImports: true,
skipTypename: true,
documentMode: 'string',
},
},
},
};
export default config;