99designs / 99designs/gqlgen

goModel/goField/goExtraField/goEnum x protobuf API_OPAQUE

Đang mở
#3,443 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
10.8k
Fork
1.3k
Merge trung bình
2 ngày 36 phút
Pull request đã merge (30 ngày)
26

Mô tả

### What happened?

The Golang team introduced the [Go Protobuf: The new Opaque API](https://go.dev/blog/protobuf-opaque)

In it we closed public fields of the structure (instead, by making the Get/Set/Has/Clear{StructName} methods) and removed optional (pointer)

Screenshot 2024-12-19 at 02 36 58

Because of this, mapping to Protobuf via these GraphQL directives will not work when using API_OPAQUE.

### What did you expect?

It may be worth modifying the directives to support fields as interfaces Get/Set/Has/Clear{StructName} methods

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

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

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.