I've added a simple way to handle n:m type relationships in the cache to apollo-augmented-hooks

Updating the cache can become quite the chore if your API contains n:m relationships between types (e.g. a todo can have a number of categories and a category can have a number of todos). Today I’ve added a feature to apollo-augmented-hooks that allows handling such cache updates with only a few lines of code. I’ve included a section explaining what the problem is and how to solve it to my caching guide.

I’d be super happy if someone found this useful. :slight_smile:

1 Like