TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

GraphQL is now available on Supabase

222 pointsby yurisagalovabout 3 years ago

9 comments

kiwicoppleabout 3 years ago
hey HN, supabase ceo here. I&#x27;m really excited about this release.<p>Our GraphQL implementation is built on top of pg_graphql[0], a PostgreSQL extension we open-sourced a few months ago. The implementation works with a lot of native PG functionality (like Row Level Security). You can also do a some neat things with PG GRANTS, enabling&#x2F;disabling access to different tables&#x2F;columns to effectively serve a different GraphQL API depending who is &quot;logged in&quot;.<p>On Supabase, the extension is served via PostgREST[1] using the public PostgreSQL function exposed by pg_graphql. PostgREST exposes PG functions as RPC routes (in our case we also map &#x2F;rest&#x2F;v1&#x2F;rpc&#x2F;graphql =&gt; &#x2F;graphql&#x2F;v1)<p>I&#x27;ll ping the main dev (@oliverrice) and make sure he is here to answer any technical questions. This is just one of the exciting features we&#x27;re launching this week. Stay tuned for one of our most-requested features later this week.<p>[0] pg_graphql: <a href="https:&#x2F;&#x2F;github.com&#x2F;supabase&#x2F;pg_graphql" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;supabase&#x2F;pg_graphql</a><p>[1] PostgREST: <a href="https:&#x2F;&#x2F;postgrest.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;postgrest.org&#x2F;</a>
评论 #30846962 未加载
评论 #30846943 未加载
评论 #30847247 未加载
评论 #30848276 未加载
xrdabout 3 years ago
I&#x27;ve been using hasura for a long time and this offering from supabase is the first time I&#x27;ve ever thought I could move away from hasura. Looks simply amazing.<p>The Gui for adding roles and tying them to postgres access is very slick with hasura. Is this done manually via SQL commands with supabase?<p>My litmus test will be if I can run the entire solution from docker or if I&#x27;ll need to assemble the pieces. Hasura is so easy to boot up with a few environment variables, run locally or inside dokku, and that makes it so simple to set up and start building.
评论 #30847166 未加载
gsvclassabout 3 years ago
Also checkout GraphJin an automatic GraphQL to SQL service in Go. It&#x27;s packed with features including support for GraphQL subscriptions, etc and can be used as a standalone service or a library. Also it&#x27;s a pure OSS project not a startup. <a href="https:&#x2F;&#x2F;github.com&#x2F;dosco&#x2F;graphjin" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dosco&#x2F;graphjin</a>
alexkreidlerabout 3 years ago
Hi all, this sounds very cool. How does pg_graphql compare to Postgraphile? <a href="https:&#x2F;&#x2F;github.com&#x2F;graphile&#x2F;postgraphile" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;graphile&#x2F;postgraphile</a> (besides I guess running in the DB with PLpgSQL instead of as a NodeJS server)<p>Did you think about integrating Postgraphile with the Supabase ecosystem or have specific limitations with it?<p>Thanks!
评论 #30853527 未加载
syrusakbaryabout 3 years ago
Nice! I was already pretty excited about you guys, and this only fuels up more excitement since I always been a GraphQL lover.<p>I&#x27;m impressed by the pace that you are releasing new products... keep it up team!
评论 #30849213 未加载
评论 #30851797 未加载
oliverriceabout 3 years ago
heyo, thanks for the ping<p>I&#x27;m the dev lead on pg_graphql. Happy to answer any questions!
评论 #30852206 未加载
评论 #30852893 未加载
评论 #30851622 未加载
评论 #30847401 未加载
elitanabout 3 years ago
Congratulations on the GraphQL launch. I think it is a step in the right direction :)<p>I see a lot of mentions of Hasura in the comments.<p>If you&#x27;d like what Supabase is building but prefer using Hasura you might want to check out what we&#x27;re building at Nhost (<a href="http:&#x2F;&#x2F;nhost.io&#x2F;" rel="nofollow">http:&#x2F;&#x2F;nhost.io&#x2F;</a>). We use Hasura&#x27;s GraphQL Engine for the API layer while also providing Postgres, Auth, Storage and Serverless Functions.<p>(CEO of Nhost)
tomatowurstabout 3 years ago
been curious as to what sort of savings you&#x27;ve been able to get with supabase because we are approaching a few thousand dollars to store a couple terabytes on DynamoDB<p>Thinking of buying a dedicated server from Hetzner to run Supabase on it instead but worried about latency. awful that we have to move away from AWS for this but with four&#x2F;five dedicated servers in EU, US-West, US-East, Singapore and Tokyo, we could have a fixed monthly storage&#x2F;database cost with some globalized latency (client would connect to whichever dedicated server is available).<p>we realize that we are at complete mercy of AWS as was expected but the database storage cost was a curveball, so much so that we are thinking of self-hosting database ourselves but seems like a daunting task of its own.<p>tldr: unpredictability and variability of storage size on Dynamodb is forcing us to explore a more reliable fixed cost solution via self-hosting and hardening our dedicated servers running Supabase.
评论 #30848219 未加载
评论 #30849647 未加载
sk55about 3 years ago
Does this support Graphql subscriptions as well?
评论 #30851574 未加载
评论 #30853621 未加载