Netflix/dgs-codegen

feature: Prefix type names

Aberta

#323 aberto em 6 de fev. de 2022

 (6 comentários) (11 reações) (0 responsável)Kotlin (112 forks)auto 404
good first issue

Métricas do repositório

Stars
 (215 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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?

Guia do colaborador