Protobuf GraphQL extension
This is a collection of "gadgets" (plugins) for the gogo protobuf compiler and a vanity binary for use with protoc
.
This is a fork from the (archived) opsee protobuf project with the following improvements:
- update dependencies to latest versions (proto3)
- union fix for new graphql version
- support for uint32
- enum support
Current gadgets
graphql
The graphql gadget will generate a graphql schema for protobuf messages for use with the go-graphql package. It defines extensions for use in files, messages, and fields. See examples for usage -- the files generated by the plugin are flavortown.pb.go and flavortownpb_test.go.
Vanity binary: gogoopsee
Use the vanity binary to compile your proto:
protoc --gogoopsee_out=plugins=grpc+graphql,Mgoogle/protobuf/descriptor.proto=github.com/gogo/protobuf/protoc-gen-gogo/descriptor:. --proto_path=/gopath/src:. *.proto