add fields where condition match to nested array
I have following users collection [{ "_id" : ObjectId("5afadfdf08a7aa6f1a27d986"), "firstName" : "bruce", "friends" : [ ObjectId("5afd1c42af18d985a06ac306"),ObjectId("5afd257daf18d985a06ac6ac") ] }, { "_id" : ObjectId("5afbfe21daf4b13ddde07dbe"), "firstName" : "clerk", "friends" : [], }] and have friends collection [{ "_id" : ObjectId("5afd1c42af18d985a06ac306"), "recipient" : ObjectId("5afaab572c4ec049aeb0bcba"), "requester" : ObjectId("5afadfdf08a7aa6f1a27d986"), "status" : 2, }, { "_id" : ObjectId("5afd257daf18d985a06ac6ac"), "recipient" : ObjectId("5afadfdf08a7aa6f1a27d986"), "requester" :