Posted On: Feb 22, 2018
Aggregations are a set of functions that are used to manipulate the data that has been returned from a MongoDB query. In Mongoose, aggregations work as a pipeline. The aggregate function accepts the array of data transformations which are applied by data using different methods in terms of arguments.
Syntax: db.customers.aggregate([ ... aggregation steps go here ...]);
In above, aggregation is applied to data of customers.
Never Miss an Articles from us.
Node Js is one of the most popular and powerful server technologies today. It allows you built the entire website only..
CLI stands for Command Line Interface. It is a utility or program on your computer where users type commands to perform..
Node js is written in C, C++,JavaScript.It uses Google’s open source V8 Javascript Engine to convert Javascript code..