update

See also, limitations of getAccessor

Updates the data for a given accessor, performing a merge-update (same as when fetched from the network).

Example

import { update } from 'gqless'
// Update scalars
update(query.me.name, 'bob')
// Merge in new data (existing fields left untouched)
update(query, { me: { name: 'bob' } })
Last updated on by Sam Denty