Hi,
we need to store array in one document and select part of array that matches criteria, for example some field value flag =1
doc1 : {
somefileld:"somevalue"
array: [ {id :1, flag:1}, {id :2, flag:2} }, {id :3, flag:1} ]
}
result will be:
doc1 : {
somefileld:"somevalue"
array: [ {id :1, flag:1}, {id :3, flag:1} ]
}
Is it possible?