Answer the question
In order to leave comments, you need to log in
MongoDB insertMany creates new collection instead of adding?
You need to add an array of objects to an already existing collection. I am using this code:
catModel.insertMany(jsonRow, function(err, videos) {
Answer the question
In order to leave comments, you need to log in
The main problem is that collections have names like: "Yoga-videos-source". Mongo has a specific collection naming convention, so the name should be: "yoga-videos-sources"
1) No capitalization 2) End should be "-s"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question