insertMany() statement not working fully

It says syntax error
Have you separated each doc with commas as below?

db.coll.insertMany( [
{ doc1 },
{ doc2 },
{ doc3 }
] );

1 Like