skip to Main Content

Mysql – MongoDB nested array query how to

I am trying to query a document in my MongoDB Document: { _id: '111', subEntities: [ { subId: '999', dateOfStart: '2098-01-01', dateOfTermination: '2099-12-31' }, { subId: '998', dateOfStart: '2088-01-01', dateOfTermination: '2089-12-31' } ] } My Query: {"$and": [ {"subEntities.dateOfStart": {"$lte":…

VIEW QUESTION
Back To Top
Search