-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodegen.yml
27 lines (26 loc) · 921 Bytes
/
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
overwrite: true
generates:
# Generate TS additions based on this API's .graphql documents
"src/generated/types.ts":
schema: "src/components/**/*.graphql"
config:
contextType: "../components/context#GraphQLContext"
plugins:
- "typescript"
- "typescript-resolvers"
# Example microservice integration: https://auth-api.example.local/
# "src/services/auth-api/generated/types.graphql":
# schema:
# "https://auth-api.example.local/": &schemaOptions
# headers:
# User-Agent: graphql-codegen
# plugins: &schemaPlugins
# - "schema-ast"
# "src/services/auth-api/generated/types.ts":
# schema:
# "https://auth-api.example.local/": *schemaOptions
# documents: "src/services/auth-api/src/**/!(*.d).{graphql,ts}"
# plugins: &externalApiTypescriptPlugins
# - "typescript"
# - "typescript-operations"
# - "typescript-graphql-request"