-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.yml
More file actions
26 lines (26 loc) · 824 Bytes
/
codegen.yml
File metadata and controls
26 lines (26 loc) · 824 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
overwrite: true
schema: src/schema/schema.json
# schema:
# - "http://127.0.0.1:19654/api/v2/graphql":
# headers:
# Authorization: "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEiLCJleHAiOjE3NjE4NDU0MzIsImlhdCI6MTc0NjI5MzQzMiwiaXNzIjoiY2stc2VydmVyQCJ9.AtsFRJuiHVr88uY02ZVo4ThgmjOBsUK2by-KwOk89sU"
documents:
- "src/schema/**/*.graphql"
- "src/**/*.tsx"
generates:
src/gql/:
preset: 'client'
src/schema/generated.tsx:
plugins:
- add:
content: '// @ts-nocheck'
- "typescript"
- "typescript-operations"
- "typescript-react-apollo"
config:
withHooks: true
apolloReactCommonImportFrom: '@/services/apollo-compat'
apolloReactHooksImportFrom: '@/services/apollo-compat'
./src/schema/schema.json:
plugins:
- "introspection"