Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apollo GraphOS router #1856

Closed
ryscheng opened this issue Jul 27, 2024 · 1 comment
Closed

Apollo GraphOS router #1856

ryscheng opened this issue Jul 27, 2024 · 1 comment
Assignees

Comments

@ryscheng
Copy link
Member

What is it?

Hasura is compatible with Apollo federation
https://hasura.io/docs/3.0/graphql-api/apollo-federation/

We can set this up, since we're starting to use more Apollo server features in the frontend

@ryscheng ryscheng self-assigned this Jul 27, 2024
@github-project-automation github-project-automation bot moved this to Backlog in OSO Jul 27, 2024
@ryscheng ryscheng added this to the (c) Time Series Models milestone Jul 27, 2024
@ryscheng ryscheng moved this from Backlog to In Progress in OSO Jul 27, 2024
@ryscheng
Copy link
Member Author

Looks like Supabase isn't about that Apollo federation life yet
supabase/pg_graphql#374

FWIW, Hasura is
https://hasura.io/docs/3.0/graphql-api/apollo-federation/

If Supabase supported it, then there might be an interesting argument to have Apollo GraphOS router directly route between Supabase, Hasura, and our Next.js API, merging entities between the 3 (e.g. User entities). But tbh, this seems like an over-optimization atm. It's also less useful in a world where we might want Dagster/dbt to apply transformations on Supabase data, so we probably need to connect it directly to the data backend anyway.

So in the spirit of not over-engineering, let's close this out for now, keeping with the existing architecture, where the client will directly talk to separate backends to compose functionality
Client => Hasura GraphQL API (to fetch metrics and project data)
Client => Supabase (to CRUD application state)
Client => Next.js server, which can directly talk to Clickhouse/Supabase if need be

@ryscheng ryscheng closed this as not planned Won't fix, can't repro, duplicate, stale Jul 28, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in OSO Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant