Getting started

In this tutorial, You will learn how to DELETE / REMOVE MongoDB document using node.js, This step by step guide will help you to install MongoDB module, setup nodejs project and sample code to delete single( deleteOne() ) and multiple documents ( deleteMany() ) from respected collection base on filter criteria.
In this tutorial, You will learn how to UPDATE MongoDB document using node.js, This step by step guide will help you to install MongoDB module, setup nodejs project and sample code to update the document of MongoDB collection base on filter criteria.
In this tutorial, You will learn how to INSERT document into MongoDB collection using nodejs. This step by step guide will help you to install mongodb module, setup nodejs project and sample code to insert document into mongodb.
In this tutorial, You will learn how to execute multiple sql queries using node.js and mysql. To execute multiple SQL statements you need enable multipleStatements option. by default multiple statements is disabled for security reasons.
SQL injection is a technique, which used to attack data-driven applications, in which nefarious SQL statements are inserted into an entry field for execution. SQL injection must exploit a security vulnerability in an application, To prevent SQL injection in Node Js, You can escape user input data using mysql.escape() , connection.escape() and pool.escape() methods.
In this tutorial, You will learn how to store image / file into mysql database using Nodejs. This step by step guide will help you to install mysql module, setup nodejs project and sample code to insert file or image into BLOB column.
In this tutorial, You will learn how to count a total number of records using nodejs and mysql. This step by step guide will help you to install mysql module, setup nodejs project and sample code to retrieve mysql table row count.
While writing sample code to establish the mysql database connection using nodejs, I got below error "Error: Cannot enqueue Handshake after already enqueuing a Handshake."
In this tutorial, You will learn how to establish Mysql database connection using Nodejs. This step by step guide will help you to install mysql module and sample code, helps you to connect with mysql database.
In this tutorial, You will learn how to retrieve last inserted id from mysql table using nodejs. When you are inserting a row into a table with an auto increment primary key, you can use insertId property of result from call back function.