Answers for "mongodb mongoose concatenate two values before get"

0

mongodb mongoose concatenate two values before get

db.coll.aggregate({$project:{newField:{$concat:["$field1","$field2"]}}},
                  {$match:{newField:"value"}} 
);
Posted by: Guest on February-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language