News for hackers. Stuff that matters.
Re:How and why GraphQL will influence the Sourcehut alpha by jamil7 on Thursday June 11, 2020 @03:42AM (#23486172)
I like GraphQL but if you're just serving a single SPA I wonder about all this busy work we still have to do. Why haven't we gone a step further and just abstracted all the networking and serialisation steps away and our models are synced for us in the background. Maybe the apollo team is heading in this direction but their offline story isn't great yet.

Edit: I remember now that the Apollo team is made up of members of the former Meteor team which worked in a similar way using a client side database.

Re:How and why GraphQL will influence the Sourcehut alpha by searchableguy on Thursday June 11, 2020 @03:43AM (#23486178)
You can use rxdb for replication and offline support.
Re:How and why GraphQL will influence the Sourcehut alpha by jamil7 on Thursday June 11, 2020 @03:44AM (#23486187)
Yeah good point, WatermelonDB, rxdb and pouchdb all fit this model. This to me feels like the future for web and mobile.
Re:How and why GraphQL will influence the Sourcehut alpha by searchableguy on Thursday June 11, 2020 @03:50AM (#23486228)
Hopefully not. In an ideal world, this would be the responsibility of the browser given the widespread web apps.
Re:How and why GraphQL will influence the Sourcehut alpha by jamil7 on Thursday June 11, 2020 @03:59AM (#23486279)
I don't follow, how do you mean?