update pagination
This commit is contained in:
@@ -99,7 +99,7 @@ export class UploadedFileSchema extends PothosSchema {
|
||||
resolve: async (query, root, args) => {
|
||||
const files = await this.prisma.uploadedFile.findMany({
|
||||
...query,
|
||||
skip: args.skip ?? 0,
|
||||
skip: args.skip ?? undefined,
|
||||
take: args.take ?? 10,
|
||||
orderBy: args.orderBy ?? undefined,
|
||||
where: args.filter ?? undefined,
|
||||
|
||||
Reference in New Issue
Block a user