TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Firebase2graphql – Migrate from Firebase to GraphQL on Postgres

114 点作者 wawhal超过 6 年前

4 条评论

tango12超过 6 年前
Hi HN! We wrote this CLI to explore migrating from Firebase to Postgres as easily as possible.<p>We use Hasura[1] to generate the realtime GraphQL API on Postgres automatically. The CLI tool&#x27;s work then mostly boils down to 2 things, which we do in phases:<p>1. Phase I: We migrate firebase data nodes to Postgres tables in a fairly naive way. We setup automatic IDs and parent-child tables and set up relationships between the tables. This gives you a write-many type GraphQL API on postgres. Realtime GraphQL with subscriptions and live-queries replaces firebase realtime<p>2. Phase II: As an optional next step, we try to normalise data by detecting overlapping data between tables. We delete &quot;subset&quot; tables and set up relationships to the superset table.<p>I&#x27;ve written up a blogpost with more details here: <a href="https:&#x2F;&#x2F;blog.hasura.io&#x2F;firebase2graphql-moving-from-firebase-to-realtime-graphql-on-postgres-4d36cb7f4eaf" rel="nofollow">https:&#x2F;&#x2F;blog.hasura.io&#x2F;firebase2graphql-moving-from-firebase...</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;hasura&#x2F;graphql-engine" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hasura&#x2F;graphql-engine</a> , <a href="https:&#x2F;&#x2F;hasura.io" rel="nofollow">https:&#x2F;&#x2F;hasura.io</a>
jondubois超过 6 年前
Do real-time subscriptions also work on sorted, filtered lists?<p>E.g. If a new item is added to the list, will it appear in the list in real-time? Also, if an item&#x27;s property is changed so that its position in the list changes, will this update the list in real-time as well?<p>If so, how does it prevent over-fetching?
评论 #18166996 未加载
devit超过 6 年前
Is this Hasura GraphQL Engine open source? What&#x27;s the business model? Are there any features missing if you don&#x27;t pay anything?<p>How does it get notified by PostgreSQL when the result of a query changes, since AFAIK PostgreSQL has no such built-in functionality? (it works if other apps change the database, right?)
评论 #18168480 未加载
评论 #18167916 未加载
评论 #18170279 未加载
lacker超过 6 年前
How do you secure this data in Hasura? The article does not seem to mention security.
评论 #18168935 未加载
评论 #18168868 未加载