Apollo-client React

Cache & Local State

1. Local only

2. Reactive Variable

Local only

cache.writeQuery({

    query: GET_TODOS,

        data: {

        todos: [...],

    },

});

Reactive Variable

const todos = makeVar([...])



*need to setup type policies fields with read function

Apollo client cache

By Rifki Fauzi

Apollo client cache

  • 141