I want do a batch insert job in MongoDB and I found two ways in mongoose:
One way is use insert:
insert
dataArr = [ { id: \"\",
according to what i've read, Collection.insert is a function of mongoDB driver it's much faster when inserting big amounts of data like millions or such at the cost that it bypasses mongoose validations.
handle with care