kiryl_ch
Explore posts from serversDTDrizzle Team
•Created by kiryl_ch on 5/10/2024 in #help
how to query based on relation?
I have many to many relation between Project and User table. How to querry all projects that user is into?
db.query.projects.findMany({
where: ---> users include userId ?
with: {
users: true,
},
});
2 replies