I try to execute "InsertOne" but it come up a error to say"InsterOne of dbname is not a function"
The reason is my mongodb version is too old . InertOne is new in mongoDB 3.4
db.collection.
insertOne
()
New in version 3.2.
Inserts a document into a collection.
Solution is to upgrade to Mongodb 3.4
No comments:
Post a Comment