insertMany() statement not working fully

i tried to send data to my database but only the data within the first brackets {} are being sent why is it not working?

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

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

1 Like

yeah missing comma it works thank you

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.