Is it possible to use GraphQL with Twirp RPC framework by Twitch

392 Views Asked by At

I have a Golang program working with Twirp and I want to create GraphQl server, but as far as I know, twirp build on top of the Rest API

1

There are 1 best solutions below

0
On BEST ANSWER

It is definitely possible.

You Just have to make a wrapper over the Twirp based RPC API.

This is a similar case to wrapping a GraphQL API over a Rest API.

You should also read this article, where the wrapping of a graphql api over a rest one is shown.