@forge/cli-shared
8.25.0-next.48.25.0-next.5
out/graphql/mutation-aware-graphql-client.js~
out/graphql/mutation-aware-graphql-client.jsModified+3−2
Index: package/out/graphql/mutation-aware-graphql-client.js
===================================================================
--- package/out/graphql/mutation-aware-graphql-client.js
+++ package/out/graphql/mutation-aware-graphql-client.js
@@ -34,9 +34,9 @@
constructor(runner) {
this.runner = runner;
}
async mutate(query, variables) {
- const { requestId, response } = await this.runner.run(query, variables);
+ const { requestId, response, extensions } = await this.runner.run(query, variables);
if (!response) {
throw new UnexpectedGraphQlResponseError(`(requestId: ${requestId || 'unknown'})`);
}
const mutationLabel = Object.keys(response)[0];
@@ -48,9 +48,10 @@
throw new UnexpectedGraphQlResponseError(`(requestId: ${requestId || 'unknown'})`);
}
return {
response: { [mutationLabel]: mutationResponse },
- requestId
+ requestId,
+ extensions
};
}
async query(query, variables) {
const { response, requestId } = await this.runner.run(query, variables);