---
title: "Discussion on \"Build a REST API with Node.js: Integrating MongoDB Atlas\" | Hashnode"
description: "Discussion on \"Build a REST API with Node.js: Integrating MongoDB Atlas\". Hello everyone! Welcome back to Let's Build a Node.js REST API Series. \nIf you are new to this series, please check out the previous articles to follow along:\n\nDesigning and Planning the API\nThe HTTP Module and Express\nRoutes and Controllers\n\nContinu..."
url: "https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9"
---

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

Discussion

# [Build a REST API with Node.js: Integrating MongoDB Atlas](https://blog.lo-victoria.com/build-rest-api-with-nodejs-mongodb-atlas?utm_source=hashnode&utm_medium=feed)

Hello everyone! Welcome back to Let's Build a Node.js REST API Series. If you are new to this series, please check out the previous articles to follow along: Designing and Planning the API The HTTP Module and Express Routes and Controllers Continu...

Aug 4, 2020 · 7 min read · blog.lo-victoria.com  
Updated Aug 29, 2020  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#rest-api](https://hashnode.com/tag/rest-api)
-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Victoria Lo](https://hashnode.com/@victoria)

@victoria · Singapore

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

A nerd in books, tea, games and software.

I'm a solutions engineer lead, GitHub Star, Director of WomenDevsSG, and co founder of ragTech. I work at the intersection of tech, systems, and leadership, and this blog is where I share my journey through all three. Expect honest reflections, real experiences, and thoughts that are still forming rather than polished career advice.

## Responses 10

Markdown supported · ⌘↵ to post

[Eduardo Lima](https://hashnode.com/@Esphios)

[Aug 23, 2022](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/63043f1309d19537666eb55c)

Amazing article! Just a heads up, if you're using Mongoose 6 you'll need to remove the

```
{ useFindAndModify: false,useUnifiedTopology: true, useNewUrlParser: true, useCreateIndex: true}
```

part of the code, won't work otherwise... (Error: MongoParseError: options usefindandmodify, usecreateindex are not supported)

[Victoria Lo](https://hashnode.com/@victoria)

[Aug 24, 2022](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/63043f1309d19537666eb55c#reply-6305bf5747cfea48d095b2f3)

Great thanks! This article is written before Mongoose 6. I will have to update the content soon 😊

[Fer Torres](https://hashnode.com/@fertorres)

[Nov 14, 2023](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/63043f1309d19537666eb55c#reply-6553ab7afbdaaf31319edcbe)

Cool Eduardo! This is some info that I'll need to update the project! Thanks!

[Atul](https://hashnode.com/@Atul07)

[Jan 26, 2022](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/61f0d1c087fd2728e7cd4a34)

Very nice tutorial. Many many thanks.

Here in this module I get

> Error: MongoParseError: options usefindandmodify, usecreateindex are not supported

[Victoria Lo](https://hashnode.com/@victoria)

[Jan 26, 2022](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/61f0d1c087fd2728e7cd4a34#reply-61f14aa5e247b2151e621286)

Hi there, this project is using the following technologies at the time I wrote this article:

-   Node version: 12.14.1
-   Express version: 4.17.1
-   Mongoose version: 5.9.25
-   Multer version: 1.4.2

It is using an older version of Mongoose and therefore some parameters may be deprecated. Please find the most recent docs [here](https://mongoosejs.com/docs/guide.html). Thanks!

[Armand Winter](https://hashnode.com/@winter144)

[Sep 2, 2021](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/6130b8ad33fd2e4edd9597eb)

awsome

[Favourite Jome](https://hashnode.com/@Favourite)

[May 8, 2021](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/60970e431ea29f2c341e08aa)

Super helpful article, I'm currently following a course that includes Node.js and MongoDB. This article clarifies things, thanks for sharing and for leaving links to direct docs.

[Victoria Lo](https://hashnode.com/@victoria)

[May 9, 2021](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/60970e431ea29f2c341e08aa#reply-6097d45a1ea29f2c341e1286)

No problem Favourite! Anytime 😊

[Lauren Lucero](https://hashnode.com/@LaurenBreathes)

[Mar 27, 2021](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/605fa7815aa4944ee40f93a1)

First of all, this series is so helpful and I love teas so I'm excited to use my API to store my favorites :) When I did the MongoDB setup, Allow Access From Anywhere was not an option so I just entered the same whitelist entry and confirmed.

[Victoria Lo](https://hashnode.com/@victoria)

[Mar 28, 2021](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/605fa7815aa4944ee40f93a1#reply-605fd3875aa4944ee40f953c)

Glad to hear that! And thanks for letting me know about MongoDB, their UI must have changed since this article was written a while back.

[Sanku Vishnu Darshan](https://hashnode.com/@Vsanku)

[Oct 24, 2020](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/5f93c99440346172a86c15f9)

Glad, I found this article. In fact it my first article to read on hasnode and reason to join hashnode. Excellent stuff 😄

[Victoria Lo](https://hashnode.com/@victoria)

[Oct 24, 2020](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/5f93c99440346172a86c15f9#reply-5f947221fbdce372c9a572bc)

Thanks so much :)

[Subha Chanda](https://hashnode.com/@nemo)

[Aug 5, 2020](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/5f2a717ee180c5164cded25d)

Revisioning and learning new things of my Node.js knowledge with this series. 😊

[Victoria Lo](https://hashnode.com/@victoria)

[Aug 5, 2020](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/5f2a717ee180c5164cded25d#reply-5f2aafd6e180c5164cded599)

Yay! That's great Subha!

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Aug 5, 2020](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/5f2a29ace180c5164cdecf40)

The series gets better every time, I love this!

[Victoria Lo](https://hashnode.com/@victoria)

[Aug 5, 2020](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/5f2a29ace180c5164cdecf40#reply-5f2a2ae3d7d55f162b5da028)

Thanks Bolaji! So glad you're enjoying it~

[Chibuokem Jerry](https://hashnode.com/@jerrybuks)

[Aug 5, 2020](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/5f2a059be180c5164cdecead)

Thanks for sharing!

[Victoria Lo](https://hashnode.com/@victoria)

[Aug 5, 2020](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/5f2a059be180c5164cdecead#reply-5f2a0610e180c5164cdeceb3)

No problem! Glad you enjoyed it :)

[Richard Harris](https://hashnode.com/@richard788)

[Aug 4, 2020](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/5f29ec86e180c5164cdece62)

Wow another helpful article!

[Victoria Lo](https://hashnode.com/@victoria)

[Aug 4, 2020](https://hashnode.com/posts/build-rest-api-with-nodejs-mongodb-atlas/5f29ec23d7d55f162b5d9ef9/comment/5f29ec86e180c5164cdece62#reply-5f29f1dad7d55f162b5d9f1e)

Thanks Richard :)
