update pagination
This commit is contained in:
@@ -72,7 +72,7 @@ export class UserSchema extends PothosSchema {
|
||||
return await this.prisma.user.findMany({
|
||||
...query,
|
||||
take: args.take ?? 10,
|
||||
skip: args.skip ?? 0,
|
||||
skip: args.skip ?? undefined,
|
||||
orderBy: args.orderBy ?? undefined,
|
||||
where: args.filter ?? undefined,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user