Node Tutorials

NodeJS MongoDB Remove

MongoDB database is used to store a large number of records, these records are called documents. These documents take some space in the memory, and to free up the space occupied by irrelevant documents they can be directly removed. Document removal also helps clean irrelevant, useless, or temporary data. Methods for Removing MongoDB Documents Documents …

NodeJS MongoDB Remove Read More »

NodeJS MongoDB Query

Query in MongoDB is different from a relational database like MySQL. In MongoDB, a query cannot perform operations on a database like creating collections, inserting documents, deleting documents, etc. A query is used to filter the result return when selecting the documents from a collection. A query object which contains the query inside a JavaScript …

NodeJS MongoDB Query Read More »

NodeJS MongoDB Sorting

MongoDB database has one or many collections in which records are present. These records are called documents in MongoDB. Overview of MongoDB Sorting Sorting is a technique to rearrange documents. This rearrangement can be ascending or descending according to the requirements. A real-life example is the student records, they are arranged in ascending order by …

NodeJS MongoDB Sorting Read More »

NodeJS MongoDB Select

MongoDB database has one or many collections in which records are present, called documents in MongoDB. The documents can be selected from a MongoDB database in NodeJS using the find() and findOne() methods.  Selecting MongoDB Documents in NodeJS MongoDB database is implemented in NodeJS using the MongoDB module, which provides a MongoClient which then has …

NodeJS MongoDB Select Read More »

NodeJS MySQL Select Unique

NodeJS is an open-source, cross-platform runtime environment that uses JavaScript for creating fast, data-intensive, and secure server-side applications.  These applications require some ways to store data in order to use them again. NodeJS supports all kinds of Databases, relational, and non-relational out of which MySQL can be the best choice. MySQL is a relational database …

NodeJS MySQL Select Unique Read More »