protobuf-graphql-extension

module
v1.0.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2019 License: MIT

README

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

Directories

Path Synopsis
plugin

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL