Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

mongoose use unified topology

// source: https://mongoosejs.com/docs/migrating_to_6.html#no-more-deprecation-warning-options

// No longer necessary:
mongoose.set('useFindAndModify', false);

await mongoose.connect('mongodb://localhost:27017/test', {
  useNewUrlParser: true, // <-- no longer necessary
  useUnifiedTopology: true // <-- no longer necessary
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript string add new line 
Javascript :: super method in js 
Javascript :: js do while 
Javascript :: use filereader javascript 
Javascript :: upload file to database with axios and formData 
Javascript :: how to cause a whole page reload react redux 
Javascript :: date in javascript 
Javascript :: sort numbers in array in js 
Javascript :: Using flat() method 
Javascript :: get max height from array element jqeury 
Javascript :: chrome dino game 
Javascript :: how to give icon in input type file react 
Javascript :: how to redirect to another page after clicking ok in alert 
Javascript :: get last element in array in javascript 
Javascript :: redux toolkit store 
Javascript :: import all images from folder react 
Javascript :: for each array 
Javascript :: maximum number in javascript 
Javascript :: pwa in angular 
Javascript :: react chart js 2 api data 
Javascript :: javascript unshift 
Javascript :: deno vs nodejs 
Javascript :: xmlhttprequest status codes 
Javascript :: trim text and add ... js 
Javascript :: arithmetic operators in javascript 
Javascript :: react bootstrap navbar align right buttons 
Javascript :: using ontimeupdate in javascript 
Javascript :: js map 
Javascript :: chartjs cdn 
Javascript :: Creating with the custom hook in react 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =