mongodb mongoose concatenate two values before get

Solutions on MaxInterview for mongodb mongoose concatenate two values before get by the best coders in the world

showing results for - "mongodb mongoose concatenate two values before get"
Ira
12 Jun 2017
1db.coll.aggregate({$project:{newField:{$concat:["$field1","$field2"]}}},
2                  {$match:{newField:"value"}} 
3);
4
similar questions