Node.js is a popular runtime platform to create programs that run on it.

It lets us run JavaScript outside the browser.

In this article, we’ll look at how to start using Node.js to create programs.

Limit the Number of Returned Results

We can limit the number of returned results by calling the limit method.

For example, we can write:

const { MongoClient } = require('mongodb');
const connection = "mongodb://localhost:27017";
const client = new MongoClient(connection);

#javascript #technology #web-development #node.js

Node.js Basics — Skipping and Limiting MongoDB Results
1.05 GEEK