From 8ff377b74066484e56214dffa9fd496efc68e174 Mon Sep 17 00:00:00 2001 From: Michael Law <1365977+lawmicha@users.noreply.github.com> Date: Tue, 7 Feb 2023 19:17:06 -0500 Subject: [PATCH] fix(test): DS transformer V2 tests should be update mutation on existing model --- .../TransformerV2/DataStoreConnectionOptionalAssociations.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AmplifyPlugins/DataStore/Tests/DataStoreHostApp/AWSDataStorePluginV2Tests/TransformerV2/DataStoreConnectionOptionalAssociations.swift b/AmplifyPlugins/DataStore/Tests/DataStoreHostApp/AWSDataStorePluginV2Tests/TransformerV2/DataStoreConnectionOptionalAssociations.swift index 574e656b32..18c3358471 100644 --- a/AmplifyPlugins/DataStore/Tests/DataStoreHostApp/AWSDataStorePluginV2Tests/TransformerV2/DataStoreConnectionOptionalAssociations.swift +++ b/AmplifyPlugins/DataStore/Tests/DataStoreHostApp/AWSDataStorePluginV2Tests/TransformerV2/DataStoreConnectionOptionalAssociations.swift @@ -207,7 +207,7 @@ class DataStoreConnectionOptionalAssociations: SyncEngineIntegrationV2TestBase { queriedComment.post = nil // A mock GraphQL request is created to assert that the request variables contains the "postId" // with the value `nil` which is sent to the API to persist the removal of the association. - let request = GraphQLRequest.createMutation(of: queriedComment, version: 1) + let request = GraphQLRequest.updateMutation(of: queriedComment, version: 1) guard let variables = request.variables, let input = variables["input"] as? [String: Any?], let postValue = input["postId"],