Netflix / Netflix/dgs-codegen

client objects are not generated when schema is used

Open
#771 9 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
217
Forks
116
PR merge metrics
No merged PRs in 30d

Description

Per: https://graphql.org/learn/schema/
image

if schema.graphql contains:
schema {
query: QueryRoot
}

type QueryRoot @extends {
ticks(first: Int, after: Int, allowCached: Boolean): TicksConnection
}

Then the following files are not generated:
./target/generated-sources/com/test/shopify/generated/client/TicksProjectionRoot.java
./target/generated-sources/com/test/shopify/generated/client/RouteProjection.java
./target/generated-sources/com/test/shopify/generated/client/TicksGraphQLQuery.java
./target/generated-sources/com/test/shopify/generated/client/TickProjection.java
./target/generated-sources/com/test/shopify/generated/client/VotesProjection.java
./target/generated-sources/com/test/shopify/generated/client/TickEdgeProjection.java

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the schema.graphql example, using the GraphQL schema documentation linked in the report for context. Compare the generated output with the six missing paths under target/generated-sources/com/test/shopify/generated/client/. Done means those client projection and query files are generated when the schema uses schema { query: QueryRoot } and QueryRoot @extends.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, kotlin
Domain
backend-api-design, developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.