
MongoDB Tutorial - CRUD app from scratch using Node.js
video description
Date: 2022-03-14
Related videos
Comments and reviews: 10
Ersin
if you get this error below when you run your app.js after part of the -Setting Up our Application-,
---
DeprecationWarning: current Server Discovery and Monitoring engine is deprecated,
and will be removed in a future version.
To use the new Server Discover and Monitoring engine,
pass option - useUnifiedTopology: true - to the MongoClient constructor.
(Use -node --trace-deprecation ...- to show where the warning was created)
---
change the mongoOptions object in db.js file such as that below
---
const mongoOptions = -
useNewUrlParser: true,
useUnifiedTopology: true // add this part to get ride of the error
-;
---
I hope that is gonna help you.
Because it worked on my code...
reply
if you get this error below when you run your app.js after part of the -Setting Up our Application-,
---
DeprecationWarning: current Server Discovery and Monitoring engine is deprecated,
and will be removed in a future version.
To use the new Server Discover and Monitoring engine,
pass option - useUnifiedTopology: true - to the MongoClient constructor.
(Use -node --trace-deprecation ...- to show where the warning was created)
---
change the mongoOptions object in db.js file such as that below
---
const mongoOptions = -
useNewUrlParser: true,
useUnifiedTopology: true // add this part to get ride of the error
-;
---
I hope that is gonna help you.
Because it worked on my code...
reply
Danilo
Nice tutorial! I can't open mongo shell on visual studio code(-mongo- is not recognized as the name of a cmdlet...), while installing the packages with npm(is there a certain order to install them?) 1 low severity vulnerability is being found on all of them -low = insecure default configuration - package = final handler - dependency of = express; as of now I didn't find a way to fix it, actually it is said not to be one available yet; does this have any relation to mongo shell not working? Thanks!
reply
Nice tutorial! I can't open mongo shell on visual studio code(-mongo- is not recognized as the name of a cmdlet...), while installing the packages with npm(is there a certain order to install them?) 1 low severity vulnerability is being found on all of them -low = insecure default configuration - package = final handler - dependency of = express; as of now I didn't find a way to fix it, actually it is said not to be one available yet; does this have any relation to mongo shell not working? Thanks!
reply
Jayle-
mongo : The term 'mongo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, -
verify that the path is correct and try again.-
At line:1 char:1-
+ mongo-
+ ------
+ CategoryInfo : ObjectNotFound: (mongo:String) [], CommandNotFoundException-
+ FullyQualifiedErrorId : CommandNotFoundException
reply
mongo : The term 'mongo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, -
verify that the path is correct and try again.-
At line:1 char:1-
+ mongo-
+ ------
+ CategoryInfo : ObjectNotFound: (mongo:String) [], CommandNotFoundException-
+ FullyQualifiedErrorId : CommandNotFoundException
reply
Kastellan
The errors that I encountered and solved:
npm is not recognized : download node.js
mongo is not recognized: (download mongoDB if you did not) find your mongo.exe file and add it's address to your PATH env.
An error at the return part of buildTemplate function: Be sure it is -return - -;- , not -return ' '; -.
reply
The errors that I encountered and solved:
npm is not recognized : download node.js
mongo is not recognized: (download mongoDB if you did not) find your mongo.exe file and add it's address to your PATH env.
An error at the return part of buildTemplate function: Be sure it is -return - -;- , not -return ' '; -.
reply
Chebbi
Im unable to check data of the DB in the shell eventho the collections are created and i still get the data on the app but when using the CMD there is no indexes, no data at all is there something that i am missing?
reply
Im unable to check data of the DB in the shell eventho the collections are created and i still get the data on the app but when using the CMD there is no indexes, no data at all is there something that i am missing?
reply
Jose
my edit button is not working. any thoughts ? i commented code straight from the github he posted and i went through the whole tutorial. anybody have timestamp when he started to do the edit button ?
reply
my edit button is not working. any thoughts ? i commented code straight from the github he posted and i went through the whole tutorial. anybody have timestamp when he started to do the edit button ?
reply
Olutobi
This tutorial doesn't feel like it's from scratch. For instance, something was already set up on POSTMAN before recording. Makes the tutorial really difficult to code along to for beginners.
reply
This tutorial doesn't feel like it's from scratch. For instance, something was already set up on POSTMAN before recording. Makes the tutorial really difficult to code along to for beginners.
reply
Pardeep
You know what..u should learn how to teach from brad...u are literally just writing the code which u crammed without even explaining the importance of that code
reply
You know what..u should learn how to teach from brad...u are literally just writing the code which u crammed without even explaining the importance of that code
reply
Taslim
Hey guys, shortly before you run your code at the first segment, make sure you have mongodb installed.. Start it in the background before running your app.
reply
Hey guys, shortly before you run your code at the first segment, make sure you have mongodb installed.. Start it in the background before running your app.
reply
Prabhudatta
I have an issue tha when hitting the api ii ts giving me message that cannot read property 'collection' of null. Please help me with this
reply
I have an issue tha when hitting the api ii ts giving me message that cannot read property 'collection' of null. Please help me with this
reply
Add a review, comment
Other channel videos















