Skip to content

Latest commit

 

History

History
20 lines (19 loc) · 616 Bytes

codegen.md

File metadata and controls

20 lines (19 loc) · 616 Bytes

Example of graphql code generator config. Read the docs for more details

overwrite: true
schema: 'YOUR_GRAPHQL_SCHEMA_PATH' # source of your graphql schema
documents: 'src/graphql/**/*.graphql' # destination where to generate
generates:
  src/generated/graphql.tsx:
    plugins:
      - 'typescript'
      - 'typescript-operations'
      - 'typescript-react-apollo'
    config:
      reactApolloVersion: 3
      withHOC: false
      withComponent: false
      withHooks: true
      withRefetchFn: true
      skipTypename: true