From 81c14b3bf881235631893e85d516484c0b0d16de Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Wed, 13 Nov 2024 10:01:29 -0700 Subject: [PATCH] Require id for maskOperation --- src/core/QueryManager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/QueryManager.ts b/src/core/QueryManager.ts index a35ca75d016..8bcd3fa307a 100644 --- a/src/core/QueryManager.ts +++ b/src/core/QueryManager.ts @@ -120,7 +120,7 @@ interface MaskFragmentOptions { interface MaskOperationOptions { document: DocumentNode; data: TData; - id?: string; + id: string; fetchPolicy?: WatchQueryFetchPolicy; } @@ -367,6 +367,7 @@ export class QueryManager { document: mutation, data: storeResult.data, fetchPolicy, + id: `m${mutationId}`, }) as any, }); }