in event-driven-developers-tale/functions/vacationRequestValidation/app.js [32:51]
async function executeMutation(mutation, variables) {
if (!client) {
initializeClient();
}
try {
const response = await client.mutate({
mutation,
variables
})
console.log(response.data.updateVacationRequest)
return response.data;
} catch (err) {
console.log("Error while trying to mutate data: " + err.errorMessage);
throw JSON.stringify(err);
}
}