Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb aggregate node.js

 myDataBase.aggregate(pipeline)
   			.toArray()
            .then(respond => {               
                return respond == null ? res.json([]) : res.json(respond);
            })
 
PREVIOUS NEXT
Tagged: #mongodb #aggregate
ADD COMMENT
Topic
Name
3+1 =