When I get an object, I want to get an array of objects that's on the object
const set = await SetsController.getSet(setID);
const setName = set.name;
const setId = set._id.toString();
console.log(setId);
console.log(set.cards);
set contains an array called cards.
When I do this:
console.log(set);
The whole set object prints, including the cards array.
However, when I do this:
console.log(set.cards);
it prints undefined
What am I doing wrong?