Skip to content

Commit 4938f4e

Browse files
committed
Regenerate MutateClient
1 parent 32b3290 commit 4938f4e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

samples/client/mutate/MutateClient.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,14 @@ const std::string& GetRequestText() noexcept
132132
# Copyright (c) Microsoft Corporation. All rights reserved.
133133
# Licensed under the MIT License.
134134
135-
mutation CompleteTaskMutation($input: CompleteTaskInput! = {id: "ZmFrZVRhc2tJZA==", isComplete: true, clientMutationId: "Hi There!"}) {
135+
mutation CompleteTaskMutation($input: CompleteTaskInput! = {id: "ZmFrZVRhc2tJZA==", isComplete: true, clientMutationId: "Hi There!"}, $skipClientMutationId: Boolean!) {
136136
completedTask: completeTask(input: $input) {
137137
completedTask: task {
138138
completedTaskId: id
139139
title
140140
isComplete
141141
}
142-
clientMutationId
142+
clientMutationId @skip(if: $skipClientMutationId)
143143
}
144144
}
145145
)gql"s;
@@ -166,6 +166,7 @@ response::Value serializeVariables(Variables&& variables)
166166
response::Value result { response::Type::Map };
167167

168168
result.emplace_back(R"js(input)js"s, ModifiedVariable<Variables::CompleteTaskInput>::serialize(std::move(variables.input)));
169+
result.emplace_back(R"js(skipClientMutationId)js"s, ModifiedVariable<bool>::serialize(std::move(variables.skipClientMutationId)));
169170

170171
return result;
171172
}

samples/client/mutate/MutateClient.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ static_assert(graphql::internal::MinorVersion == 1, "regenerate with clientgen:
2929
/// # Copyright (c) Microsoft Corporation. All rights reserved.
3030
/// # Licensed under the MIT License.
3131
///
32-
/// mutation CompleteTaskMutation($input: CompleteTaskInput! = {id: "ZmFrZVRhc2tJZA==", isComplete: true, clientMutationId: "Hi There!"}) {
32+
/// mutation CompleteTaskMutation($input: CompleteTaskInput! = {id: "ZmFrZVRhc2tJZA==", isComplete: true, clientMutationId: "Hi There!"}, $skipClientMutationId: Boolean!) {
3333
/// completedTask: completeTask(input: $input) {
3434
/// completedTask: task {
3535
/// completedTaskId: id
3636
/// title
3737
/// isComplete
3838
/// }
39-
/// clientMutationId
39+
/// clientMutationId @skip(if: $skipClientMutationId)
4040
/// }
4141
/// }
4242
/// </code>
@@ -67,6 +67,7 @@ struct Variables
6767
};
6868

6969
CompleteTaskInput input {};
70+
bool skipClientMutationId {};
7071
};
7172

7273
response::Value serializeVariables(Variables&& variables);

0 commit comments

Comments
 (0)