Skip to content

Commit b46559f

Browse files
committed
fix(test): DS transformer V2 tests should be update mutation on existing model (#2753)
1 parent 7210c95 commit b46559f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AmplifyPlugins/DataStore/Tests/DataStoreHostApp/AWSDataStorePluginV2Tests/TransformerV2/DataStoreConnectionOptionalAssociations.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class DataStoreConnectionOptionalAssociations: SyncEngineIntegrationV2TestBase {
207207
queriedComment.post = nil
208208
// A mock GraphQL request is created to assert that the request variables contains the "postId"
209209
// with the value `nil` which is sent to the API to persist the removal of the association.
210-
let request = GraphQLRequest<Comment8>.createMutation(of: queriedComment, version: 1)
210+
let request = GraphQLRequest<Comment8>.updateMutation(of: queriedComment, version: 1)
211211
guard let variables = request.variables,
212212
let input = variables["input"] as? [String: Any?],
213213
let postValue = input["postId"],

0 commit comments

Comments
 (0)