Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb mongoose concatenate two values before get

db.coll.aggregate({$project:{newField:{$concat:["$field1","$field2"]}}},
                  {$match:{newField:"value"}} 
);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mongodb #mongoose #concatenate #values
ADD COMMENT
Topic
Name
7+9 =