This commit is contained in:
2024-10-18 15:52:03 +07:00
parent e76d77dadd
commit 7714a0fb79
2 changed files with 16 additions and 1 deletions

View File

@@ -153,6 +153,21 @@ export class UserSchema extends PothosSchema {
}); });
}, },
}), }),
// banUser: t.prismaField({
// description: 'Ban a user.',
// type: this.user(),
// args: {
// userId: t.arg({ type: 'String', required: true }),
// },
// resolve: async (query, root, args, ctx, info) => {
// return await this.prisma.user.update({
// ...query,
// where: { id: args.userId },
// data: { banned: true },
// });
// },
// }),
})); }));
} }
} }