From 873421f1e991ce300578ebcd54033f0783e0ae2a Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Sun, 6 Feb 2022 22:41:59 +0100 Subject: [PATCH] feat: add connection in updateStep response --- .../backend/src/graphql/mutations/update-step.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/backend/src/graphql/mutations/update-step.ts b/packages/backend/src/graphql/mutations/update-step.ts index 5d0b6cba..653568ba 100644 --- a/packages/backend/src/graphql/mutations/update-step.ts +++ b/packages/backend/src/graphql/mutations/update-step.ts @@ -31,12 +31,14 @@ const updateStepResolver = async ( }) .throwIfNotFound(); - step = await Step.query().patchAndFetchById(input.id, { - key: input.key, - appKey: input.appKey, - connectionId: input.connection.id, - parameters: input.parameters, - }); + step = await Step.query() + .patchAndFetchById(input.id, { + key: input.key, + appKey: input.appKey, + connectionId: input.connection.id, + parameters: input.parameters, + }) + .withGraphFetched('connection'); return step; };