Created
April 15, 2020 14:51
-
-
Save terrierscript/f3de52d29450fd98475c9e30da850e64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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