Skip to content

Instantly share code, notes, and snippets.

@bogoslavskiy
Created March 5, 2020 17:33
Show Gist options
  • Save bogoslavskiy/21f1e893986ea97034f894e2bc7fcb81 to your computer and use it in GitHub Desktop.
Save bogoslavskiy/21f1e893986ea97034f894e2bc7fcb81 to your computer and use it in GitHub Desktop.
overwrite: true
schema: "http://localhost:5000/graphql"
documents:
- components/**/*.tsx
- graphql/queries/*.ts
generates:
graphql/generated.ts:
plugins:
- typescript
- typescript-operations
- typescript-react-apollo
config:
scalars:
NEString: string
Timestamp: number
reactApolloVersion: 3
withHooks: true
withHOC: false
withComponent: false
namingConvention:
enumValues: change-case#upperCase
graphql/introspection.json:
plugins:
- introspection
config:
minify: true
graphql/introspection-result.json:
plugins:
- fragment-matcher
config:
apolloClientVersion: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment