How to select with references

hello guys, im trying to achieve the thing in prisma
1 Reply
Kryp Arnold
Kryp ArnoldOP7mo ago
const allUsers = await prisma.user.findMany({
include: {
posts: true
}
});
const allUsers = await prisma.user.findMany({
include: {
posts: true
}
});
Want results from more Discord servers?
Add your server