-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodegen.yml
42 lines (42 loc) · 1.18 KB
/
codegen.yml
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
39
40
41
42
overwrite: true
schema:
- https://local.graphql.nhost.run:
headers:
X-Hasura-Admin-Secret: nhost-admin-secret
generates:
./src/generated/schema.graphql:
plugins:
- schema-ast
./src/generated/server-queries.ts:
documents:
- './src/**/*.graphql'
- '!./src/generated/**'
plugins:
- typescript
- typescript-operations
- typed-document-node
config:
scalars:
timestamptz: string
timestamp: string
uuid: string
./src/generated/graphql.tsx:
documents:
- './src/**/*.graphql'
- '!./src/generated/**'
- '!./src/server/**'
plugins:
- typescript
- typescript-operations
- typescript-react-apollo
- named-operations-object
config:
withHooks: true
withRefetchFn: true
withComponent: false
withHOC: false
identifierName: GqlOps
scalars:
timestamptz: string
timestamp: string
uuid: string