Fix optimistic effects to work with fragments (#1683)

* Fix optimistic effects to work with fragments

* Regenerate
This commit is contained in:
Charles Bochet
2023-09-20 16:13:54 -07:00
committed by GitHub
parent 772d54d29f
commit 708391460c
5 changed files with 41 additions and 52 deletions

View File

@ -1,11 +1,9 @@
import { Person } from '~/generated/graphql';
import { GET_PEOPLE } from '../queries/getPeople';
import { GetPeopleDocument, Person } from '~/generated/graphql';
export const getPeopleOptimisticEffectDefinition = {
key: 'generic-entity-table-data-people',
typename: 'Person',
query: GET_PEOPLE,
query: GetPeopleDocument,
resolver: ({
currentData,
newData,