I work on a projet: React / Apollo Client.
When i want to update cache after mutation (in case of adding new object) i see in apollo developper tools a element called 'extraRootIds'

create({
variables: { object: film },
update: (cache, { data }) => {
const entity = data.insert_film_one;
cache.modify({
fields: {
search_film: (existingEntityRefs, { readField }) => {
const newEntityRef = cache.writeFragment({
id: 'film:{"film_id":' + entity.film_id + '}',
data: entity,
fragment: FILM_CREATE_FIELDS
});
return [...existingEntityRefs, newEntityRef];
}
}
});
}
});
Everything seems to be ok but i wonder if this extrarootIds is normal.
Thanks ;)