@forge/cli

14.1.0-next.21-experimental-554d41714.1.0-next.19-experimental-fd0ebbc
out/deploy/deployer/trigger-deploy-graphql-client.js
~out/deploy/deployer/trigger-deploy-graphql-client.jsModified
+4−3
Index: package/out/deploy/deployer/trigger-deploy-graphql-client.js
===================================================================
--- package/out/deploy/deployer/trigger-deploy-graphql-client.js
+++ package/out/deploy/deployer/trigger-deploy-graphql-client.js
@@ -13,9 +13,9 @@
     constructor(graphqlClient) {
         this.graphqlClient = graphqlClient;
     }
     async deploy(deploymentDetails) {
-        const deployAppQuery = `
+        const deployAppQuery = (0, cli_shared_1.graphql)(`
       mutation forge_cli_deployApplication($input: CreateAppDeploymentInput!) {
         createAppDeployment(input: $input) {
           success
           errors {
@@ -29,12 +29,13 @@
             id
           }
         }
       }
-    `;
-        const { response: { createAppDeployment: { deployment, success, errors } }, requestId } = await this.graphqlClient.mutate(deployAppQuery, {
+    `);
+        const { response, requestId } = await this.graphqlClient.mutate(deployAppQuery, {
             input: deploymentDetails
         });
+        const { deployment, success, errors } = (0, cli_shared_1.requireMutationPayload)(response.createAppDeployment, requestId);
         const error = (0, cli_shared_1.getError)(errors);
         if (!success) {
             throw new cli_shared_1.GraphQlMutationError(`${error.message} (requestId: ${requestId || 'unknown'})`, {
                 requestId,