Open vinaybedre opened 7 years ago
Quick and dirty:
import User from 'User';
var a = new User();
var b = new User();
var c = [a, b];
c.forEach(u => u.save())
Is it good for you?
hi @DavidBernal Thanks for the hint, but this is very obvious and expected :-)
What if I have thousands of documents to be inserted? Kind of bulk data insert. (at least 1000+ documents to be inserted at a time). Is there a way?
Currently, there's no API to bulk insert. I'll keep that as a feature request, thanks!
Hi,
Using mongorito, is it possible to save multiple instances of an object to MongoDB?