Netflix/dgs-codegen

feature: Prefix type names

オープン

#323 opened on 2022/02/06

 (6 件のコメント) (11 件のリアクション) (0 人の担当者)Kotlin (112 件のフォーク)auto 404
good first issue

Repository metrics

Stars
 (215 個のスター)
PR merge metrics
 (PR metrics pending)

説明

For example, given the schema:

interface A {
  id: ID!
}

type B implements A {
  id: ID!
  b: String!
}

With a prefix of GQL_, would generate:

  • interface GQL_A
  • class GQL_B implements GQL_A

This would help when converting between database, RPC, and GraphQL objects sharing the same name for example

I know #21 and #132 exist, would a PR in the (distant) future be OK?

コントリビューターガイド