Skip to content

Instantly share code, notes, and snippets.

@terrierscript
Created April 15, 2020 14:51
Show Gist options
  • Save terrierscript/f3de52d29450fd98475c9e30da850e64 to your computer and use it in GitHub Desktop.
Save terrierscript/f3de52d29450fd98475c9e30da850e64 to your computer and use it in GitHub Desktop.
overwrite: true
schema: https://XXXXXXX.herokuapp.com/v1/graphql
documents:
- query.graphql
generates:
src/generated/types.d.ts:
plugins:
- "typescript"
# - "typescript-document-nodes"
# - "typescript-operations"
# - "typescript-graphql-request"
config:
scalars:
uuid: string
immutableTypes: true
flattenGeneratedTypes: true
skipTypename: ture
src/generated/sdk.ts:
preset: import-types
presetConfig:
typesPath: ./types
plugins:
- "typescript-document-nodes"
- "typescript-operations"
# introspection
# ./graphql.schema.json:
# plugins:
# - "introspection"
# src/generated/:
# preset: near-operation-file
# presetConfig:
# folder: src/generated/
# extension: .generated.ts
# baseTypesPath: types.ts
# plugins:
# - "typescript-document-nodes"
# - "typescript-operations"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment