forked from 12nomad/litee-snack-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.ts
More file actions
18 lines (16 loc) · 412 Bytes
/
Copy pathcodegen.ts
File metadata and controls
18 lines (16 loc) · 412 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
schema: 'http://localhost:6969/graphql',
documents: [
'src/**/*.mutation.ts',
'src/**/*.query.ts',
'src/**/*.subscription.ts',
],
ignoreNoDocuments: true, // for better experience with the watcher
generates: {
'./src/gql/generated/': {
preset: 'client',
},
},
};
export default config;