Sling Academy
Home/Node.js/Page 33

Node.js

Node.js is a JavaScript runtime that allows for server-side scripting, enabling the development of scalable network applications using a non-blocking, event-driven architecture.

How to Define and Use Nested Models in Sequelize.js

Updated: Dec 29, 2023
Introduction Sequelize.js is a robust ORM (Object-Relational Mapping) library for Node.js, which facilitates the interaction with SQL databases. It allows developers to use JavaScript objects and model relationships between these......

How to Create Models in Sequelize (JavaScript & TypeScript Examples)

Updated: Dec 29, 2023
Introduction Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server. It features solid transaction support, relations, eager and lazy loading, read replication and more. Sequelize......

Fixing SequelizeConnectionRefusedError with Sequelize & Docker

Updated: Dec 29, 2023
Understanding the Error The SequelizeConnectionRefusedError: connect ECONNREFUSED in a Node.js project using Sequelize and Docker typically signifies that the Sequelize ORM (Object-Relational Mapping) library is trying to connect to a......

How to Count Associated Entries in Sequelize.js

Updated: Dec 29, 2023
Learn more than one technique to count associated entries in Sequelize and Node.js. Solution 1: Using findAndCountAll Description: The findAndCountAll method in Sequelize can be used to fetch all entries along with the total count,......

What is Model Synchronization in Sequelize?

Updated: Dec 29, 2023
Introduction Sequelize is a popular promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server. It features solid transaction support, relations, eager and lazy loading, read replication and more. One......

How to extend an existing model in Sequelize

Updated: Dec 29, 2023
Introduction Sequelize is a robust SQL ORM for Node.js, and it provides an intuitive way to work with relational databases. One of the features of Sequelize is model extension, which allows developers to add functionality to existing......

Sequelize.js: How to Validate Numbers and Text Length

Updated: Dec 29, 2023
Introduction Sequelize is a popular promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server. It features solid transaction support, relations, eager and lazy loading, read replication, and more. One of......

Sequelize.js: How to Auto-Hash Passwords

Updated: Dec 29, 2023
Introduction In modern web development, handling user passwords with utmost security is crucial. Passwords should never be stored as plain text in databases. Instead, they should be hashed using a robust algorithm. Sequelize, a Node.js......

Sequelize.js: How to insert multiple records at once

Updated: Dec 29, 2023
Overview Sequelize is a popular Node.js ORM for managing relational databases. One common task when interacting with databases is inserting multiple records efficiently. Sequelize provides mechanisms for bulk-insert operations which......

Sequelize: How to Update a Record by ID

Updated: Dec 29, 2023
Overview Sequelize is a powerful Object-Relational Mapper (ORM) for Node.js, which supports multiple dialects of SQL. One common task when working with ORMs is updating records in the database. This tutorial will guide you through the......

How to Implement Pagination in Sequelize.js

Updated: Dec 29, 2023
Introduction Implementing pagination is a core requirement for applications that handle large datasets or have the potential for large volumes of data retrieval. In web development, limiting the number of records sent to the client not......

How to Execute Raw SQL Queries in Sequelize

Updated: Dec 29, 2023
Introduction Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite, and Microsoft SQL Server. It features solid transaction support, relations, eager and lazy loading, read replication, and more. While Sequelize......