This project aims to solve the problem of communication between services that use different API protocols.
Such as GraphQL and gRPC.
Let's say your backend services use gRPC for fast and reliable communication however your frontend uses GraphQL.
Normally your only two options:
- Either expose gRPC endpoints alongside GraphQL endpoints or build and
- Maintain another service that acts as a gateway between your backend infrastructure and frontend application.
This project provides tools to help you build your API much quicker for both of these cases.
- Use
protoc-gen-gql
, protoc-gen-gogql
and proto2graphql
to generate boilerplate code on your backend.
- Spin up a gateway and convey the messages from one protocol to the other on the fly!
Check out the docs for getting started and usage examples at: https://danielvladco.github.io/go-proto-gql/
Will be happy for any contributions. So feel free to create issues, forks and PRs.
License:
go-proto-gql
is released under the Apache 2.0 license. See the LICENSE file for details.