I have the following objects array and was wondering if there is a way to filter results as return only QtyIn records or return only QtyOut records? Any hint is highly appreciated. Thanks for your help
{
warehouseID: "1234",
transactions : [
{
"qtyIn" : "10",
"transDateTime" : ISODate("2019-09-10T18:54:41.983Z")
},
{
"qtyOut" : "11",
"transDateTime" : ISODate("2019-08-10T18:54:41.983Z")
},
{
"qtyOut" : "200",
"transDateTime" : ISODate("2019-02-10T11:54:41.983Z")
}
],
}
transactions? Or as root document?