TypeError: mongodb property insertmany is not a function

I had a similar problem. You need to have version 3.2

> New in version 3.2.

You need to update your version of mongodb to use insertMany.

It's not so hard. I did it a couple weeks ago to use insertMany


I am newbie in MongoDB , I got similar error in another scenario. I am adding that also an answer here, any future reader may find useful!

db.users.insertMany ([{name:"Ajith",status:"pending",age:25}, {name:"Kumar",status:"withheld",age:40}, {name:"Lal",status:"passed",age:34}, {name:"Tishil Joppen",status:"high",age:28}])

I forgot to include the square brackets , and got the same error!!