-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcodegen.yaml
25 lines (25 loc) · 911 Bytes
/
codegen.yaml
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
overwrite: true
schema:
- "${VENDURE_API_URL:http://127.0.0.1:3000/shop-api}"
# This is the additional schema extension that would be present it
# the Stripe playment plugin is enabled on the Vendure server. Added
# manually here to allow codegen to work regardless.
- "type Mutation { createStripePaymentIntent: String }"
# This is the additional schema extension that would be present it
# the Braintree playment plugin is enabled on the Vendure server. Added
# manually here to allow codegen to work regardless.
- "type Query { generateBraintreeClientToken: String }"
documents:
- "src/graphql/**/*.gql"
config:
scalars:
Money: number
generates:
src/graphql/_generated.ts: # generated sdk
plugins:
- typescript
- typescript-operations
- typescript-generic-sdk
src/graphql/schema.graphql: # for vscode plugin to autocomplete
plugins:
- schema-ast