leveluptuts / gQuery

Not like jQuery. A GraphQL Fetcher & Cache for Svelte Kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mutations should auto update cache

stolinski opened this issue · comments

Basically since the cache is pretty naive, you could easily just have the return update it's given object in the cache.

Not going to happen the way things exist now. It could, but tbh it's very easy to auto update. Maybe you could have an api that looks like....

runMutation({variables:gqlvars, store: store, optimistic: func})

I guess that would do it. 🤔