Skip to content
Discussion options

You must be logged in to vote

@JumBay Codegen configuration in .graphqlrc.yml should be under codegen:.
So it needs to be;

documents:
  - ./src/**/*.graphql
extensions:
  codegen:
    emitLegacyCommonJSImports: true
    generates:
      ./src/generated/types.ts:
        plugins:
          - typescript
          - typescript-operations
      ./src/:
        preset: near-operation-file
        presetConfig:
          extension: .generated.ts
          baseTypesPath: generated/types.ts
        plugins:
          - typescript-operations
          - typed-document-node

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JumBay
Comment options

@saihaj
Comment options

saihaj Dec 8, 2022
Collaborator

Answer selected by JumBay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants