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!
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!
app.codernotes.io/notes/creating-s...