U kunt deze zoekopdracht gebruiken:
Library.find({
'id': libraryID,
'collections.id': CollectionID,
'collections.subCollections.id': subCollectionID
}, { 'collections.subCollections.$': 1 }, function(err, data) {
console.log(err, data);
})
U kunt deze zoekopdracht gebruiken:
Library.find({
'id': libraryID,
'collections.id': CollectionID,
'collections.subCollections.id': subCollectionID
}, { 'collections.subCollections.$': 1 }, function(err, data) {
console.log(err, data);
})