dotansimha/graphql-code-generator

fragment-matcher generated code is wrongly indented

Ouverte

#6 600 ouverte le 1 sept. 2021

 (1 commentaire) (0 réaction) (0 personne assignée)TypeScript (1 295 forks)batch import
corehelp wantedstage/1-reproductionstage/2-failing-test

Métriques du dépôt

Stars
 (10 341 étoiles)
Métriques de merge PR
 (Merge moyen 46j 1h) (11 PRs mergées en 30 j)

Description

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"

Guide contributeur