feat: Convert all mutation files to js

This commit is contained in:
Faruk AYDIN
2023-12-28 13:53:16 +01:00
parent cbbb76a6c5
commit 8682f22e68
42 changed files with 229 additions and 706 deletions

View File

@@ -0,0 +1,15 @@
const deleteConnection = async (_parent, params, context) => {
context.currentUser.can('delete', 'Connection');
await context.currentUser
.$relatedQuery('connections')
.delete()
.findOne({
id: params.input.id,
})
.throwIfNotFound();
return;
};
export default deleteConnection;