Hi,
I have the below data where there are 2 bookingLineId fields. I would like to get the number of such duplicate bookingLineId fields in my collection. Please let us know on this.
{
"_id" : ObjectId("5f4e18f4f90762fe549a1eee"),
"bookingNumber" : "NOO1034684",
"bookingLines" : [
{
*"bookingLineId" : 11062129,*
*"bookingLineId" : 99169522,*
"parentBookingLineId" : null,
"articleCode" : "E",
"isExtension" : false,
},
{
"bookingLineId" : 11062130,
"parentBookingLineId" : 11062129,
"articleCode" : "COL2",
"isExtension" : false,
}
],
"bookingSchoolId" : null,
"marketCode" : "NOO",
"marketKey" : "Norway",
"opportunityId" : "0061w000019Byu0AAC",
"programCode" : "ILS",
}