dotansimha/graphql-code-generator

fragment-matcher generated code is wrongly indented

开放

#6,600 创建于 2021年9月1日

 (1 条评论) (0 个反应) (0 位负责人)TypeScript (1,295 个派生)batch import
corehelp wantedstage/1-reproductionstage/2-failing-test

仓库指标

星标
 (10,341 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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"

贡献者指南