News for hackers. Stuff that matters.
Re:Show HN: Firebase2graphql – Migrate from Firebase to Grap... by jondubois on Monday October 08, 2018 @08:52AM (#18166934)
Do real-time subscriptions also work on sorted, filtered lists?

E.g. If a new item is added to the list, will it appear in the list in real-time? Also, if an item's property is changed so that its position in the list changes, will this update the list in real-time as well?

If so, how does it prevent over-fetching?

Re:Show HN: Firebase2graphql – Migrate from Firebase to Grap... by 0x777 on Monday October 08, 2018 @09:02AM (#18166996)
Yes they work with filters, ordering etc.

> ... prevent over-fetching

This is handled server side. Subscriptions are more like 'live queries'. The server sends the data to the client only when the result set for the given 'live-query' changes.

Re:Show HN: Firebase2graphql – Migrate from Firebase to Grap... by jondubois on Monday October 08, 2018 @10:08AM (#18167549)
It sounds like the server has to keep track of all active live-queries. Does it need to re-fetch all of them on every update?