Is there a way to generate GraphQL schema from protobuf?

I have a fairly large / complex definition of the protobuf API, and I wonder if there is a convenient tool for automatically generating the GraphQL text scheme and its (nested) types from a subset of this protobuf?

I usually use Node.js, but I am open to other languages ​​to create schemas. Thanks in advance!

+9
source share
3 answers

Rejoiner will create a single GraphQL schema from protobuf sources (such as gRPC microservices).

http://rejoiner.io/

https://github.com/google/rejoiner

+3
source

If you want to use GoLang, there is a protobuff for the GraphQL to

https://github.com/opsee/protobuf

Current Graphql Gadgets

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. Examples of use - files created by the plugin - flavortown.pb.go and flavortownpb_test.go.

+2
source

any updates on this subject?

Rejoiner docs are terrible and https://github.com/danielvladco/go-proto-gql doesn't seem to be used actively,

is this even a good (right) decision to use Protobuf files to generate GQL schemas?

0
source

Source: https://habr.com/ru/post/1268603/


All Articles