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?

貢獻者指南