Natively, unfortunately, is not possible to perform a Join into a NoSQL database. This is actually one of the biggest differences between SQL and NoSQL DBs.
As @kaleb said, you would have to do multiple selections and then join the needed information "manually".
Luckily, there are ORMs frameworks such as Prisma that will allow you to "fake" the native SQL join feature.
Note: you re still performing multiple db calls under the hood, increasing the read-ops, and everything that s concerned.
" A key feature of Prisma Client is the ability to query relations between two or more models. " -> https://www.prisma.io/
example:
const getUser = await prisma.user.findUnique({
where: {
id: 19,
},
select: {
name: true,
posts: {
select: {
title: true,
},
},
},
})
In this case, the posts are stored in a different table, but Prisma is able to fetch them and join them into the User object.