-
Notifications
You must be signed in to change notification settings - Fork 859
Offline-first support #1659
Comments
We are currently waiting for Apollo Client to mature in this area. Please track this repository https://github.com/apollographql/apollo-cache-asyncstorage/issues/6 |
Excellent, thanks @sorenbs |
I'll close this issue, please refer to the mentioned one above. |
I'm reviving this issue to explore more ways how Prisma could make building "offline-first" applications easier. Ideas & use-cases are more than welcome! 🙌 |
Thanks for reopening this @schickling Here are my thoughts on some offline-first or "similar" libraries I have tested: Pros:
Cons:
Pros:
Cons:
Pros:
Cons:
Pros:
Cons:
edit: formating |
Relevant comment on the state of Apollo offline support: |
@sorenbs, I'm confused, does the Prisma client use Apollo? |
Ok, nevermind, the "Prisma client" name was confusing. The "client" is a client to the Prisma Server, but it also runs server side. If you want something to run client side (browser, React Native, etc..) then you'll want to use something else (like Apollo Client). prisma/prisma-examples#239 (comment) |
@sebastianmacias Thanks for great list of databases. I'm working now on my side project for providing offline support extension to graphql out of the box. I have created an issue to check if it is possible to use prisma (and I think it should work great with Prisma and some small wrapper package will be required to support conflict resolution). Once that is done Prisma community will have a way to work with offline first workflows out of the box. |
I have checked and it works. Project will work with any database of our choice, but it will use single key storage for the moment. We are planning to improve that as part of the https://github.com/apollographql/apollo-cache-persist package. |
What feature are you missing?
Will prisma eventually offer offline-first / browser / server sync similar to gun.js?
This would be very helpful for developing PWAs
The text was updated successfully, but these errors were encountered: