Answer the question
In order to leave comments, you need to log in
How to properly join tables with mongoose(mongo)?
The problem is this:
There are 2 tables with data, one is `teams` : The other is
`roster` :
There is `roster.team_id` which holds an int.
And here I actually make a request for getting, waiting to see `teams`, and its `roster` :
let qq = await Team.find({_id: 271}).populate('Roster');
return qq;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question