Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

mongoose deprecation warning

mongoose.connect(process.env.DATABASE, {
 useNewUrlParser: true,
 useCreateIndex: true,
 useFindAndModify: false,
 useUnifiedTopology: true,
})
.then(() => {
 console.log("DB connected");
})
.catch((err) => console.log(`DB connection Err`, err));
Comment

mongoose deprecation warning

mongoose.set('useNewUrlParser', true);
mongoose.set('useFindAndModify', false);
mongoose.set('useCreateIndex', true);
mongoose.set('useUnifiedTopology', true);
Comment

PREVIOUS NEXT
Code Example
Javascript :: display image on button click javascript 
Javascript :: javascript hide elements by class 
Javascript :: javascript for loop array backwards 
Javascript :: rich editor react 
Javascript :: js copy array 
Javascript :: javascript regex named capture group 
Javascript :: jquery find element before 
Javascript :: accessing via name jquery 
Javascript :: string repeat javascript 
Javascript :: fetch request 
Javascript :: Find a character between space with Regex in js 
Javascript :: node convert string to hash 
Javascript :: upload files with angular 
Javascript :: javascript get page args 
Javascript :: usememo hook react 
Javascript :: javascript event currenttarget 
Javascript :: javascript timing events 
Javascript :: javascript convert number to spreadsheet column 
Javascript :: edit external json file in javascript 
Javascript :: vscode react extensions 
Javascript :: pdf to html js 
Javascript :: kick commands discord.js 
Javascript :: rgb to hex conversion 
Javascript :: get server side props 
Javascript :: javascript sleep 1 second" 
Javascript :: find average of numbers 
Javascript :: javascript change video poster 
Javascript :: how to run and clone react app 
Javascript :: what is the difference between let and const in javascript 
Javascript :: how to get keys from request headers in express 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =