go-proto-gql icon indicating copy to clipboard operation
go-proto-gql copied to clipboard

Document danielvladco.protobuf.graphql.required since proto3 fields all "optional" but GraphQL has "required" concept

Open perrydunn opened this issue 2 years ago • 0 comments

In proto3 all fields are optional. In GraphQL fields can be required. There is a protobuf field annotation already available and being used within protoc-gen-gql, danielvladco.protobuf.graphql.required, but it does not appear in any of the examples and it is not otherwise documented.

I think it's worth adding the annotation to an example or otherwise documenting its existence.

perrydunn avatar May 26 '22 13:05 perrydunn