dotansimha/graphql-code-generator

fragment-matcher generated code is wrongly indented

Open

#6600 aperta il 1 set 2021

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)TypeScript (1295 fork)batch import
corehelp wantedstage/1-reproductionstage/2-failing-test

Metriche repository

Star
 (10.341 star)
Metriche merge PR
 (Merge medio 22g 9h) (53 PR mergiate in 30 g)

Descrizione

Describe the bug

When using the fragment-matcher plugin against a graphql server this is the result of the generated code. image

To Reproduce Steps to reproduce the behavior: use fragment-matcher plugin. Possibly have not fragments to match.

  1. My GraphQL schema:
# Put your schema here
  1. My GraphQL operations:
# Put your operations here
  1. My codegen.yml config file:
overwrite: true
schema: "http://localhost:3000/graphql"
documents: null
generates:
  src/types/graphql-generated.ts:
    plugins:
      - "typescript"
      - "fragment-matcher"

Guida contributor