DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
(node:2736) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.
mongoose.connect( url, {useCreateIndex: true }, () => { console.log("MongoDB is connected!"); } );
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Use
#createIndexes
ADD COMMENT
Topic
COMMENT
Name
1+9 =
Submit