Netflix / Netflix/dgs-codegen

includeQueries and other include options not working

Open
#856 1 comment 1 reaction 1 assignee View on GitHub

@sjohnr is already working on this.

Since Aug 11, 2025.

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

Description

Hey there,
I'm trying to use the codegen on a Gitlab's GQL schema, which is quite large (~1MB). In the docs you provide a guide on how to reduce code generation only on needed queries, subscriptions etc.; however it seems like the options do nothing.

I'm providing a sample repo in which I'm able to replicate locally the problem; when you examine the types/Query.kt file, it contains all queries, although in the build.gradle.kts file I've set includeQueries = mutableListOf("timelogs").

Thanks!

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.