NestJS - Database with Prisma
Given the Prisma models below, what will be the result of the query
prisma.user.findUnique({ where: { id: 1 }, include: { posts: true } }) if user with id 1 has two posts?model User {
id Int @id @default(autoincrement())
name String
posts Post[]
}
model Post {
id Int @id @default(autoincrement())
title String
userId Int
user User @relation(fields: [userId], references: [id])
}