supabase / pg_graphql

GraphQL support for PostgreSQL
https://supabase.github.io/pg_graphql
Apache License 2.0
2.82k stars 96 forks source link

Support Apollo Federation #374

Open audkar opened 1 year ago

audkar commented 1 year ago

Summary

Support Apollo Federation. This requires to comply with the Federation Specification

Rationale

Federated superGraph allows composing multiple services. pg_graphql would be an ideal addition to the Apollo federation ecosystem as it allows to quickly add a Posgresql DB.

Also, Apollo provides a lot of advanced services for GraphQL schema maintenance.

Design

Federation Specification. I do not know pg_graphql implementation details. But seems that the most important needed functionalities (unique global nodeId resolution) already exist. Maybe that not much is needed to add @Key directives to nodeId and generate Entities union.

olirice commented 1 year ago

thanks, I'll have a look through the spec and report back

compatibility with secondary specs e.g. Apollo is a non-goal but if its something simple we can leave this open

Tjerk-Haaye-Henricus commented 11 months ago

Hey There 👋

is there any information on that ? Are we able to use apollo federation with supabase ?

olirice commented 11 months ago

Federation is not currently being worked on

The subgraph spec is still niche, new, and pretty involved for us to implement

We may circle back in the future but for now its not something we want add first party support for