Skip to content

Commit b591de9

Browse files
authored
Update prisma.md for Prisma 3
Prisma 3 no longer exports ```Prisma.UserOrderByInput```, but rather ```Prisma.UserOrderByWithRelationInput```.
1 parent b369245 commit b591de9

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)