I have the following record in my DB [Simplified to what matters to the question], I was wondering if there is a way where I can select all records with Type = 1, customerID = "Customer 1" and sort by transDateTime ASC? Thanks.
{
type: "1",
notes: "bla bla",
transactions : [
{
"customerID" : "Customer 1",
"transDateTime" : ISODate("2017-09-10T18:54:41.983Z")
},
{
"transDateTime" : ISODate("2017-08-10T18:54:41.983Z")
},
{
"customerID" : "Customer 1",
"transDateTime" : ISODate("2017-02-10T11:54:41.983Z")
}
],
}