spacecloud-io / space-cloud

Open source Firebase + Heroku to develop, scale and secure serverless apps on Kubernetes
https://space-cloud.io
Apache License 2.0
3.94k stars 222 forks source link

[Feature] Create a Graphql Source #1628

Closed YourTechBud closed 1 year ago

YourTechBud commented 1 year ago

The problem faced currently?

There are several amazing GraphQL engines like Hasura which have support for multiple types of datasources. It would be great if SpaceCloud could federate remote graphql sources.

How can we solve it?

Create a Graphql source for the Graphql provider.

This source will be responsible for:

  1. Fetching the graphql schema of a remote graphql source via instrospection (over http)
  2. Extract the type system of the remote graphql source
  3. Provide dataloader mechanism to solve the n+1 problem which can arise when performing on-the-fly joins
  4. Implement a resolver to query the upstream graphql source.

If you want this feature to be implemented, give it a thumbs up reaction, so that we can determine which features are important to you. 👍