MongoDB expression to query array of subdocuments
问题 I am building an application using MongoDB 4 / Mongoose 5. I have a collection 'records' with an array of subdocuments 'Items'. { RecordID: 1, Items: [ { Title: 'Example Title 1', Description: 'Example Description 1', }, { Title: 'Example Title 2', Description: 'Example Description 2', } ] } I am building a dynamic query generator that creates MongoDB expression operators based on a UI query builder. The dynamic query builder is building the MongoDB expressions correctly. However, the