diff --git a/packages/sync/integration_test/test/offline.test.js b/packages/sync/integration_test/test/offline.test.js index de307396..192351a0 100644 --- a/packages/sync/integration_test/test/offline.test.js +++ b/packages/sync/integration_test/test/offline.test.js @@ -32,7 +32,8 @@ describe('AeroGear Apollo GraphQL Voyager client', function () { const newTask = { description: 'new', - title: 'new' + title: 'new', + version: 1 }; const updatedTask = { diff --git a/packages/sync/src/cache/createOptimisticResponse.ts b/packages/sync/src/cache/createOptimisticResponse.ts index c72b20a7..fd8adb8e 100644 --- a/packages/sync/src/cache/createOptimisticResponse.ts +++ b/packages/sync/src/cache/createOptimisticResponse.ts @@ -50,7 +50,6 @@ export const createOptimisticResponse = optimisticResponse[operation] = { __typename: typeName, ...data, - version: 1, optimisticResponse: true }; if (addId) {