Does mongoose / mongodb have access to object references in schema during aggregate?
问题 I'm working on a query that reads from 2 different obj referentes inside my mongo database. I will use a simple example of what im looking for. I have 3 schemas: User = new Schema({ places:[{type: Schema.Types.ObjectId, ref:'Place'}], shouts:[{type: Schema.Types.ObjectId, ref:'Shout'}] }); Place = new Schema({ name:String, description:String, }); Shout = new Schema({ content:String, }); My biggest question is if mongoose or mongodb has access to objectId references when executing the