feat: add connection in updateStep response
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
5aae9a60f4
commit
873421f1e9
@@ -31,12 +31,14 @@ const updateStepResolver = async (
|
|||||||
})
|
})
|
||||||
.throwIfNotFound();
|
.throwIfNotFound();
|
||||||
|
|
||||||
step = await Step.query().patchAndFetchById(input.id, {
|
step = await Step.query()
|
||||||
key: input.key,
|
.patchAndFetchById(input.id, {
|
||||||
appKey: input.appKey,
|
key: input.key,
|
||||||
connectionId: input.connection.id,
|
appKey: input.appKey,
|
||||||
parameters: input.parameters,
|
connectionId: input.connection.id,
|
||||||
});
|
parameters: input.parameters,
|
||||||
|
})
|
||||||
|
.withGraphFetched('connection');
|
||||||
|
|
||||||
return step;
|
return step;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user