You can insert multiple documents into a collection by using the synchronous
InsertMany() method or the asynchronous
The following example inserts multiple documents into
Select the Asynchronous or Synchronous tab to see the corresponding code.
After running either of the preceding full examples, the output is as follows:
Number of restaurants found before insert: 0 Inserting documents... Number of restaurants inserted: 5
To learn more about using builders, see Operations with Builders.