---
title: "Discussion on \"CRUD Operations using Node JS.\" | Hashnode"
description: "Discussion on \"CRUD Operations using Node JS.\". A complete beginner to advance guide."
url: "https://hashnode.com/posts/crud-operations-using-node-js/6578475067bb0cc3a586c8a9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [CRUD Operations using Node JS.](https://js-love.hashnode.dev/crud-operations-using-node-js?utm_source=hashnode&utm_medium=feed)

A complete beginner to advance guide.

Dec 12, 2023 · 4 min read · js-love.hashnode.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#mern](https://hashnode.com/tag/mern)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#full-stack-development](https://hashnode.com/tag/full-stack-development)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#express](https://hashnode.com/tag/express)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#crud](https://hashnode.com/tag/crud)

## Written by

[Abhishek Kumar](https://hashnode.com/@Abhishek30)

@Abhishek30 · India

  
[View profile](https://hashnode.com/@Abhishek30)

Software Engineering | Full-Stack Web Development | JavaScript

I am Full-Stack Web Developer.

## Responses 5

Markdown supported · ⌘↵ to post

[Narayana M V L](https://hashnode.com/@narayana85)

[Dec 13, 2023](https://hashnode.com/posts/crud-operations-using-node-js/6578475067bb0cc3a586c8a9/comment/6579475fa7af0fb6a9071cae)

Nice Explanation Adhi, Just want to Add support for custom where clauses:

async destroy(data, whereClause = {}) { const response = await this.model.destroy({ where: { id: data, ...whereClause, }, }); if (!response) { throw new AppError('Not able to find the resource', StatusCodes.NOT\_FOUND); } return response; }

This allows users to specify additional conditions for deletion besides the primary key.

[Abhishek Kumar](https://hashnode.com/@Abhishek30)

[Dec 13, 2023](https://hashnode.com/posts/crud-operations-using-node-js/6578475067bb0cc3a586c8a9/comment/6579475fa7af0fb6a9071cae#reply-657964d88c20139b60a71acf)

++

[SUYASH MISHRA](https://hashnode.com/@suyasho786)

[Dec 12, 2023](https://hashnode.com/posts/crud-operations-using-node-js/6578475067bb0cc3a586c8a9/comment/657872b9a7af0fb6a90122fa)

Thanks for wonderful explanation

[21UCS037 SADHANA SHARMA](https://hashnode.com/@SadhanaSharma15)

[Dec 12, 2023](https://hashnode.com/posts/crud-operations-using-node-js/6578475067bb0cc3a586c8a9/comment/65786e5ba7af0fb6a900e846)

Thanks for the elaborative explanation author 🚀✨Keep writing such amazing articles

[Abhishek Kumar](https://hashnode.com/@Abhishek30)

[Dec 12, 2023](https://hashnode.com/posts/crud-operations-using-node-js/6578475067bb0cc3a586c8a9/comment/65786e5ba7af0fb6a900e846#reply-65786e97ff43aae7e46d1032)

Thanks reader for this beautiful comment ❤️

[Akshat Awasthi](https://hashnode.com/@Kodiac1)

[Dec 12, 2023](https://hashnode.com/posts/crud-operations-using-node-js/6578475067bb0cc3a586c8a9/comment/65786d06a7af0fb6a900dbaa)

Nicely explained

[Govind Singh](https://hashnode.com/@govindsingh2058)

[Dec 12, 2023](https://hashnode.com/posts/crud-operations-using-node-js/6578475067bb0cc3a586c8a9/comment/65786b9bff43aae7e46cf2c6)

Loved it.
