Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goModel/goField/goExtraField/goEnum x protobuf API_OPAQUE #3443

Open
flymedllva opened this issue Dec 18, 2024 · 1 comment
Open

goModel/goField/goExtraField/goEnum x protobuf API_OPAQUE #3443

flymedllva opened this issue Dec 18, 2024 · 1 comment

Comments

@flymedllva
Copy link

What happened?

The Golang team introduced the Go Protobuf: The new Opaque API

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

@StevenACoffman
Copy link
Collaborator

Sure, this would be a good config option to add so people could opt-in. A PR would be welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants