importMongoSample() - Import some JSON documents from MongoDB
Import a specified number of JSON documents from a collection in a MongoDB database.
Syntax diagram
Command parameters
- hostname
- This argument specifies the name of the server that hosts the MongoDB database.
- portnr
- This argument specifies the port number of the MongoDB database.
- dbname
- This argument specifies the database name of the MongoDB database.
- collection
- This argument specifies the collection name in the MongoDB database.
- rows
- This argument specifies the - number of documents to import. If it is set to 0, then it imports all documents.
- userid
- This optional argument specifies the user name with which to connect to the MongoDB database.
- pwd
- This optional argument specifies the password for this user name.
