Migrate from Firebase to GraphQL on Postgres

get it

Firebase2GraphQL is a CLI tool to that gives you instant realtime GraphQL on your Firebase data. It takes data exported from Firebase and imports into Postgres via Hasura GraphQL engine.

Around the web


Sean Grove
Anon Ray


You need to become a Contributor to join the discussion.
Ian Rumac
Ian Rumac@ianissoawesome · Android Developer @ Undabot
This is real great - Firebase is awesome for prototyping and getting stuff out fast, but transitioning is a PITA. Now I can hack my silly ideas together even faster, thanks :)
Rajoshi Ghosh
Rajoshi GhoshMaker@rajoshighosh · Co-founder, Hasura
@ianissoawesome Thank you :). Do try it out and let us know what you think! We have just started to get some early positive feedback and would love to know your experience! We're super active on our community discord server if you have any questions:
Rishichandra Wawhal
Rishichandra Wawhal@wawhal · I like to write code & lift heavy things
Thank you @kwdinc for hunting us 😃 We wrote this CLI to explore migrating from Firebase to Postgres as easily as possible. We use Hasura to generate the realtime GraphQL API on Postgres automatically. The CLI tool's work then mostly boils down to 2 things, which we do in phases: 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 2. Phase II: As an optional next step, we try to normalise data by detecting overlapping data between tables. We delete "subset" tables and set up relationships to the superset table. We've written up a blogpost with more details here: [1] ,
Brad Bitler
Brad Bitler@bitler · Principal UX at Autodesk
Interesting! Can anyone suggest a compatible CMS for this?
Rajoshi Ghosh
Rajoshi GhoshMaker@rajoshighosh · Co-founder, Hasura
@bitler Once you import your data into Hasura, we have a UI (a PHP-MyAdmin like console) that helps your browse your data and make GraphQL queries in the embedded GraphiQL. It’s not really a CMS though. However, you should be able to use any existing CMS that works with Postgres with Hasura.