Closed StevenACoffman closed 5 months ago
@StevenACoffman, this is definitely a feature we've considered. It likely plays into similar discussions about the current mechanism to resolve relations. Before the initial open-source release (v0.0.1), we actually experimented with two other, different ways of expressing/configuring resolvers. We landed on the current shape for a variety of reasons, but it is admittedly more challenging to implement than if the relationship information could somehow be configured via Protobuf annotations and have the Knit framework itself handle resolution. I think in a future where relationships are easier to implement and configure, we'd be more likely to investigate tackling GraphQL support. We'd likely also need some extra configuration to map entity types/domains to RPC entry points and perhaps also be able to configure aliases for columns and relationships, to make it easier to port existing GraphQL schemas to Knit.
That's entirely fair. I quite like what you've done with knit and appreciate everything you are doing over at buf. Thanks for your kind response.
Hi! I maintain gqlgen and I was wondering how hard it would be to adapt knit gateway to act as a GraphQL gateway. (browser -> graphql -> knit -> Connect/gRPC )
There's grpc-graphql-gateway and protoc-gen-graphql (and even old rejoiner) to get from protobuf to graphql, so it seems doable.
One tricky piece is as @jhump mentioned: