9h sang tao code tiep

This commit is contained in:
2024-10-28 02:56:36 +07:00
parent adcce52f06
commit f787d0c194
23 changed files with 61 additions and 34 deletions

View File

@@ -85,8 +85,8 @@ export class ChatroomSchema extends PothosSchema {
resolve: async (query, root, args, ctx, info) => {
return await this.prisma.chatRoom.findMany({
...query,
skip: args.skip ?? 0,
take: args.take ?? 10,
skip: args.skip ?? undefined,
take: args.take ?? undefined,
orderBy: args.orderBy ?? undefined,
where: args.filter ?? undefined,
});