Lets say I have two schemas. find() returns:contact : { email : "myeimail@gmao.zap", phone: "45454484654" } and want to populate name and surname from the other schema and add it to this output so it would look like this:contact : { name : "Vardenis", surname : "Pavardenis" email : "myeimail@gmao.zap", phone: "45454484654" } instead ofcontact : { name : { name : "Vardenis", surname : "Pavardenis" } email : "myeimail@gmao.zap", phone: "45454484654" } Is it possible?
Submitted October 04, 2019 at 10:10PM by ibrag474
No comments:
Post a Comment