Skip to content

Commit 1015c35

Browse files
Merge pull request #2043 from dmlo/patch-1
Update prisma.md for Prisma 3
2 parents 28488a9 + b591de9 commit 1015c35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/recipes/prisma.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export class UserService {
295295
take?: number;
296296
cursor?: Prisma.UserWhereUniqueInput;
297297
where?: Prisma.UserWhereInput;
298-
orderBy?: Prisma.UserOrderByInput;
298+
orderBy?: Prisma.UserOrderByWithRelationInput;
299299
}): Promise<User[]> {
300300
const { skip, take, cursor, where, orderBy } = params;
301301
return this.prisma.user.findMany({
@@ -361,7 +361,7 @@ export class PostService {
361361
take?: number;
362362
cursor?: Prisma.PostWhereUniqueInput;
363363
where?: Prisma.PostWhereInput;
364-
orderBy?: Prisma.PostOrderByInput;
364+
orderBy?: Prisma.PostOrderByWithRelationInput;
365365
}): Promise<Post[]> {
366366
const { skip, take, cursor, where, orderBy } = params;
367367
return this.prisma.post.findMany({

0 commit comments

Comments
 (0)