Thanks for this post!
I found that I wasn't able to implement this using a Svelte store. I use svelte-apollo to access my db, and what gets returned from the function is a store which seems not to play well with the sapper side of things...
Thankfully, I found a workaround, since I have another db that replicates the data I need (Algolia for search).
Here's a link to my implementation if anyone wants to see!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.