# Class: MongoClient

## vertx-mongo-js/mongo_client~ MongoClient

#### new MongoClient()

Source:
  - vertx-mongo-js/mongo_client.js, line 37

### Methods

#### bulkWrite(arg0, arg1, arg2) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Array.<Object> |
`arg2` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 328

##### Returns:

Type
  MongoClient

#### bulkWriteWithOptions(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Array.<Object> |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 351

##### Returns:

Type
  MongoClient

#### close()

Source:
  - vertx-mongo-js/mongo_client.js, line 1063

#### count(arg0, arg1, arg2) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 611

##### Returns:

Type
  MongoClient

#### createCollection(arg0, arg1) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 812

##### Returns:

Type
  MongoClient

#### createIndex(arg0, arg1, arg2) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 875

##### Returns:

Type
  MongoClient

#### createIndexWithOptions(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 898

##### Returns:

Type
  MongoClient

#### distinct(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | string |
`arg2` | string |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 986

##### Returns:

Type
  MongoClient

#### distinctBatch(arg0, arg1, arg2) → {ReadStream}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | string |
`arg2` | string |

Source:
  - vertx-mongo-js/mongo_client.js, line 1032

##### Returns:

Type
  ReadStream

#### distinctBatchWithQuery(arg0, arg1, arg2, arg3, arg4) → {ReadStream}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | string |
`arg2` | string |
`arg3` | Object |
`arg4` | number |

Source:
  - vertx-mongo-js/mongo_client.js, line 1049

##### Returns:

Type
  ReadStream

#### distinctWithQuery(arg0, arg1, arg2, arg3, arg4) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | string |
`arg2` | string |
`arg3` | Object |
`arg4` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 1010

##### Returns:

Type
  MongoClient

#### dropCollection(arg0, arg1) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 853

##### Returns:

Type
  MongoClient

#### dropIndex(arg0, arg1, arg2) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | string |
`arg2` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 941

##### Returns:

Type
  MongoClient

#### find(arg0, arg1, arg2) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 373

##### Returns:

Type
  MongoClient

#### findBatch(arg0, arg1) → {ReadStream}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |

Source:
  - vertx-mongo-js/mongo_client.js, line 394

##### Returns:

Type
  ReadStream

#### findBatchWithOptions(arg0, arg1, arg2) → {ReadStream}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |

Source:
  - vertx-mongo-js/mongo_client.js, line 432

##### Returns:

Type
  ReadStream

#### findOne(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 448

##### Returns:

Type
  MongoClient

#### findOneAndDelete(arg0, arg1, arg2) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 566

##### Returns:

Type
  MongoClient

#### findOneAndDeleteWithOptions(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 589

##### Returns:

Type
  MongoClient

#### findOneAndReplace(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 519

##### Returns:

Type
  MongoClient

#### findOneAndReplaceWithOptions(arg0, arg1, arg2, arg3, arg4, arg5) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | Object |
`arg4` | Object |
`arg5` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 544

##### Returns:

Type
  MongoClient

#### findOneAndUpdate(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 471

##### Returns:

Type
  MongoClient

#### findOneAndUpdateWithOptions(arg0, arg1, arg2, arg3, arg4, arg5) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | Object |
`arg4` | Object |
`arg5` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 496

##### Returns:

Type
  MongoClient

#### findWithOptions(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 410

##### Returns:

Type
  MongoClient

#### getCollections(arg0) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 832

##### Returns:

Type
  MongoClient

#### insert(arg0, arg1, arg2) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 95

##### Returns:

Type
  MongoClient

#### insertWithOptions(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 118

##### Returns:

Type
  MongoClient

#### listIndexes(arg0, arg1) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 919

##### Returns:

Type
  MongoClient

#### remove(arg0, arg1, arg2) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 633

##### Returns:

Type
  MongoClient

#### removeDocument(arg0, arg1, arg2) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 745

##### Returns:

Type
  MongoClient

#### removeDocuments(arg0, arg1, arg2) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 655

##### Returns:

Type
  MongoClient

#### removeDocumentsWithOptions(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 701

##### Returns:

Type
  MongoClient

#### removeDocumentWithOptions(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 791

##### Returns:

Type
  MongoClient

#### removeOne(arg0, arg1, arg2) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 723

##### Returns:

Type
  MongoClient

#### removeOneWithOptions(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 768

##### Returns:

Type
  MongoClient

#### removeWithOptions(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 678

##### Returns:

Type
  MongoClient

#### replace(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 235

##### Returns:

Type
  MongoClient

#### replaceDocuments(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 258

##### Returns:

Type
  MongoClient

#### replaceDocumentsWithOptions(arg0, arg1, arg2, arg3, arg4) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | Object |
`arg4` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 306

##### Returns:

Type
  MongoClient

#### replaceWithOptions(arg0, arg1, arg2, arg3, arg4) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | Object |
`arg4` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 282

##### Returns:

Type
  MongoClient

#### runCommand(arg0, arg1, arg2) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 963

##### Returns:

Type
  MongoClient

#### save(arg0, arg1, arg2) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 50

##### Returns:

Type
  MongoClient

#### saveWithOptions(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 73

##### Returns:

Type
  MongoClient

#### update(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 141

##### Returns:

Type
  MongoClient

#### updateCollection(arg0, arg1, arg2, arg3) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 164

##### Returns:

Type
  MongoClient

#### updateCollectionWithOptions(arg0, arg1, arg2, arg3, arg4) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | Object |
`arg4` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 212

##### Returns:

Type
  MongoClient

#### updateWithOptions(arg0, arg1, arg2, arg3, arg4) → {MongoClient}

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | string |
`arg1` | Object |
`arg2` | Object |
`arg3` | Object |
`arg4` | function |

Source:
  - vertx-mongo-js/mongo_client.js, line 188

##### Returns:

Type
  MongoClient