Using variables with Kotlin closures

Đang mở
#843 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@paulbakker đang làm issue này rồi.

Từ ngày 18/8/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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?

Ngôn ngữ chính
Kotlin
Star
220
Fork
123
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
23

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Netflix/dgs-codegen

Tất cả issue của Netflix/dgs-codegen

Issue tương tự

Thêm issue về Kotlin

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.