Skip to content

Instantly share code, notes, and snippets.

@paramsinghvc
Created August 16, 2022 15:56
Show Gist options
  • Save paramsinghvc/99513a51aedceac3c23c9866ca247eba to your computer and use it in GitHub Desktop.
Save paramsinghvc/99513a51aedceac3c23c9866ca247eba to your computer and use it in GitHub Desktop.
schema: schema.graphql
overwrite: true
documents: "./src/**/*.gql"
generates:
./src/shared/generated/graphql.tsx:
plugins:
- typescript
- typescript-operations
- typescript-react-apollo
config:
skipTypename: false
withHooks: true
withHOC: false
withComponent: false
scalars:
DateTime: string
Currency: string
Void: any
URL: string
IBAN: string
./src/shared/generated/graphql.schema.json:
plugins:
- introspection
./src/shared/generated/schema.graphql:
plugins:
- schema-ast
./src/@types/graphql.d.ts:
plugins:
- typescript-graphql-files-modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment