urql-graphql / urql-exchange-graphcache

A normalized and configurable cache exchange for urql
88 stars 13 forks source link

Verify whether resolvers cover all use-cases #129

Open kitten opened 4 years ago

kitten commented 4 years ago

We'd like to collect more use-cases for resolvers. Right now we have some out of the box patterns, relayPagination and simplePagination, but we haven't explored all possible cases in which resolvers may make sense.

As part of this task we'd like to explore more use-cases and ensure that all possible GraphQL cache resolvers that can be implemented with other clients, can be implemented with Graphcache

JoviDeCroock commented 4 years ago

A use case I've found for updates where we could be lacking if we for instance have two lists:

Todos({ filter: 'x', from: 0, limit: 10 }) and Todos({ filter: 'y', from: 0, limit: 10 })

If we now execute deleteTodo how would we delete something in both of these lists?