Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Make repeated fields and field order of object and input extensions match graphql-java in 15.0.0

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

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, kotlin
Lĩnh vực
api, backend-api-design

Hướng nghiên cứu

Start by reading the object and input extension processing and the tests for interface extensions, which already cover repeated fields. Compare the behavior with graphql-java: duplicate fields should be rejected, and input fields from the base definition should precede extension fields. Done means both behaviors are covered by tests and match graphql-java for the planned 15.0.0 change.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Interface extensions now keep the first of a repeated field and log a warning (#855), but object extensions still silently keep the last one:

type Query {
    "from the type"
    greeting: String
}

extend type Query {
    "from the extension"
    greeting: String
}

builds greeting with "from the extension". Input objects also list the fields of their extensions before their own, so input Filter { term: String } plus extend input Filter { limit: Int } gives limit, term.

graphql-java rejects the repeated field and lists base fields first. Changing either changes existing schemas, so this has to wait for 15.0.0, together with #863.

Ngôn ngữ chính
Kotlin
Star
824
Fork
175
Merge trung bình
2 ngày 5 giờ
Pull request đã merge (30 ngày)
52

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 graphql-java-kickstart/graphql-java-tools

Tất cả issue của graphql-java-kickstart/graphql-java-tools

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.