What is Projection in MongoDB?

Projection is nothing but another way to select fields for showing or hiding. We need to specify the field as 1 or 0.

db.col_name.find(filter,{field_name:1, field_name:0})

By adding limit() method to find() it limits the documents to a given number.

db.col_name.find(filter).limit(n)

Filter-optional for filtering documents ; n-any positive number to limit

By adding skip() method to find() it skips the documents with a given number.

db.col_name.find(filter).skip(n)

Filter-optional for filtering documents ; n-any positive number to limit

By adding sort() method to find() it sorts the documents in ascending or descending order.

db.coll_name.find(filter).sort({field_name:sort_value})

Sorting can be done with any field. Sort_value: 1 for ascending amd -1 for descending order.