How do I filter to return a subset of a mongoose schema?
问题 My objective is to query mongoDB for a subset of an array within an array. For example, in the 'whole Data Set' (below), I would like to get all of the chorePerson records that have a personID of '5c6e3c74b9f5ed0016b00577' Whole Data Set [ { "_id": "5c7464a26b47a13470411031", "affiliation": "liss_family", "year": 2019, "weekNumber": 9, "chart": [ { "chorePerson": [ { "_id": "5c7464a26b47a13470411054", "person": "emily", "personID": "5c6e3c74b9f5ed0016b00577", "chore": "Catbox", "choreID":