by xrd · 6y ago · 0 comments
Using postgresql alone would make this super exciting. Adding graphql takes it to "giddy" level for me.
Is there a story for offline support? Is there perhaps a react library that could help here? The tutorial uses subscriptions, wonder what happens when the app goes offline?
This is so amazing. I'm going to play with it and Svelte and see how it goes.
Well done!
disclaimer: I made RxDB
[1] https://github.com/pubkey/rxdb
[2] https://hasura.io/learn/graphql/react-rxdb-offline-first/int...
Use case I'm thinking about:
- At first the mobile app has no account, db is used without online backend.
- Then user pays for premium features including online backup/sync.
- This user then is created and all the data will be put in the online db and syncs, etc.
- No local SQLite db or anything needs to sync, because you have this offline first database, that can handle offline only.
This seems like an obvious use case to me, but have had trouble figuring out best path forward.
If the interface is graphql, you should be able to use Apollo Client[0] which has offline support.
Can you please elaborate? What are you trying to do and why it's a pain?
I'm planning to use it for a side-project, the first in a long time, and I'm trying to wrap my head around it.