Using variables with Kotlin closures

オープン
#843 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@paulbakker がすでに取り組んでいます。

2025年8月18日 から。

評価

この issue はまだ評価されていません。

説明

The documentation provides an example for the usage of variables in the non-closure code.

I cannot find a way to do this when using generateKotlinClosureProjections = true, since the generated methods do not have any similar ...Reference parameters. I also cannot simply fall back to selectively using ...GraphQLQuery classes, since the generation of the Java classes seems to be mutually exclusive with Kotlin closures.

Is this feature planned and/or would you be willing to accept a PR for this feature?

主要言語
Kotlin
スター
220
フォーク
123
平均マージ
1日 6時間
マージ済み PR(30日)
23

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Netflix/dgs-codegen のほかの issue

Netflix/dgs-codegen の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。