diff --git a/js/src/apollo/utils.ts b/js/src/apollo/utils.ts index e7dbd2d1f..694db7d6e 100644 --- a/js/src/apollo/utils.ts +++ b/js/src/apollo/utils.ts @@ -34,6 +34,11 @@ export const possibleTypes = types.reduce((acc, type) => { return acc; }, {} as Record); +const replaceMergePolicy = ( + _existing: TExisting, + incoming: TIncoming +): TIncoming => incoming; + export const typePolicies: TypePolicies = { Discussion: { fields: { @@ -61,6 +66,8 @@ export const typePolicies: TypePolicies = { participants: paginatedLimitPagination(["roles"]), comments: pageLimitPagination(), relatedEvents: pageLimitPagination(), + options: { merge: replaceMergePolicy }, + participantStats: { merge: replaceMergePolicy }, }, }, RootQueryType: {