Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

connect mongoose from node js

- In your entry file
mongoose
  .connect("mongodb://localhost/vidly")
  .then(() => console.log("Connected to MongoDB..."))
  .catch((err) => console.log("Cloud not connect to MongoDB..."));
Source by mongoosejs.com #
 
PREVIOUS NEXT
Tagged: #connect #mongoose #node #js
ADD COMMENT
Topic
Name
5+4 =