Skip to content

Instantly share code, notes, and snippets.

@cgatian
Last active September 6, 2019 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cgatian/637fa1ac6061d8e9a60086c8e8a4e3b1 to your computer and use it in GitHub Desktop.
Save cgatian/637fa1ac6061d8e9a60086c8e8a4e3b1 to your computer and use it in GitHub Desktop.
GraphQL Code Generator near-operation-file-preset
overwrite: true
schema: "schema.graphql"
documents: "src/**/*.graphql"
generates:
src/generated/types.graphql-gen.ts:
plugins:
- "typescript"
src/generated:
preset: near-operation-file
presetConfig:
extension: .graphql-gen.ts
baseTypesPath: types.graphql-gen.ts
plugins:
- "typescript"
- "typescript-operations"
- "typescript-apollo-angular"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment