 |
Generate Test Data — MongoDB Manual 2.6.7
The insertData() function takes three parameters: a database, a new or existing collection, and the number of documents to create. The function creates documents with an x field set to an incremented integer, as in the following example documents:
docs.mongodb.org |
 |