Skip to content

Instantly share code, notes, and snippets.

@JoSuzuki
Created March 31, 2021 14:13
Show Gist options
  • Save JoSuzuki/c3790bff79989ab40a4b0035bbef70a0 to your computer and use it in GitHub Desktop.
Save JoSuzuki/c3790bff79989ab40a4b0035bbef70a0 to your computer and use it in GitHub Desktop.
codegen.yml to use apollo-mergeable-types.js
overwrite: true
schema: '../../../app/graphql/schema.graphql'
generates:
./src/schema-types/fragments/introspection-result.ts:
plugins:
- fragment-matcher
config:
apolloClientVersion: 3
./src/schema-types/fragments/apollo-mergeable-types.ts:
plugins:
- ./src/scripts/generate-apollo-mergeable-types.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment