google / rejoiner

Generates a unified GraphQL schema from gRPC microservices and other Protobuf sources
https://google.github.io/rejoiner/
Apache License 2.0
3.67k stars 139 forks source link

Reverse rejoiner #88

Open timburks opened 5 years ago

timburks commented 5 years ago

I think it would be useful to be able to analyze a GraphQL schema and produce a set of .proto files describing services that, when implemented, could be stitched together by Rejoiner to implement the specified schema. I'm not sure that all possible GraphQL schemas could be supported by this, but even a subset could be useful (particularly if the analyzer also generated warnings about what was unsupportable).

sheepdreamofandroids commented 5 years ago

The problem with that is that there are so many possible solutions: each field is a potential join with another grpc service. It is really up to you to decide which data belongs together.

Also, the GraphQL schema doesn't carry any type info, so there just isn't enough data to create proto files.