Aditya Gupta

NodeJS MongoDB Find: Querying Single and Multiple Documents

A MongoDB database can have multiple collections, which can contain lots of documents. To find documents based on custom queries, the MongoDB Node.js driver provides us with two useful methods: find() and findOne(). Let’s see them in detail. How to Query MongoDB Documents in Node.js MongoDB database is implemented in NodeJS using the MongoDB module,

NodeJS MongoDB Find: Querying Single and Multiple Documents Read More »

Node.js Readline Module: Get User Input From Command Line

Readline Module is a built-in module in Node.js used for handling user inputs and providing resultant output to the command line. This module offers various methods to help interact with CLI. Using this tool we can create a fully functional CLI-based application. Let’s learn it in detail. Introduction to Node.js Readline The Readline Module is

Node.js Readline Module: Get User Input From Command Line Read More »