Netflix/dgs-codegen

feature: Prefix type names

开放

#323 创建于 2022年2月6日

 (6 条评论) (11 个反应) (0 位负责人)Kotlin (112 个派生)auto 404
good first issue

仓库指标

星标
 (215 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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?

贡献者指南