> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# MongoDB connector

- Connector: `appmixer.mongodb`
- Version: 1.4.1
- Components: 7 (3 triggers, 4 actions)

Integrate with your MongoDB database.

- Connector page: <https://connectors.appmixer.com/connector/appmixer.mongodb/1.4.1>
- Source code: <https://github.com/clientIO/appmixer-connectors/tree/dev/src/appmixer/mongodb>
- Download package: <https://connectors.appmixer.com/connector/appmixer.mongodb/1.4.1/download>

## Authentication

**Type:** API Key

**Fields:**

- `Connection URI` (text): Provide the connection URI
- `Database` (text): Name of your database
- `TLS CA File` (textarea): Paste text content of `.crt` file.
- `TLS Allow Invalid Hostnames` (text): Type `true` to allow invalid hostnames.
- `TLS Allow Invalid Certificates` (text): Type `true` to allow invalid certificates.

## Triggers (3)

- [Deleted Document](https://connectors.appmixer.com/connector/appmixer.mongodb/1.4.1/component/appmixer.mongodb.db.DeletedDocument.md) (`appmixer.mongodb.db.DeletedDocument`): Trigger when a new document has been deleted in a MongoDB collection.
- [New Document](https://connectors.appmixer.com/connector/appmixer.mongodb/1.4.1/component/appmixer.mongodb.db.NewDocument.md) (`appmixer.mongodb.db.NewDocument`): Trigger when a new document has been added to a MongoDB collection.
- [Updated Document](https://connectors.appmixer.com/connector/appmixer.mongodb/1.4.1/component/appmixer.mongodb.db.UpdatedDocument.md) (`appmixer.mongodb.db.UpdatedDocument`): Trigger when a document has been updated in a MongoDB collection.

## Actions (4)

- [Create Document](https://connectors.appmixer.com/connector/appmixer.mongodb/1.4.1/component/appmixer.mongodb.db.CreateDocument.md) (`appmixer.mongodb.db.CreateDocument`): Create a new document in a MongoDB collection.
- [Delete Document](https://connectors.appmixer.com/connector/appmixer.mongodb/1.4.1/component/appmixer.mongodb.db.DeleteDocument.md) (`appmixer.mongodb.db.DeleteDocument`): Delete a document(s) from a MongoDB collection.
- [Query](https://connectors.appmixer.com/connector/appmixer.mongodb/1.4.1/component/appmixer.mongodb.db.Query.md) (`appmixer.mongodb.db.Query`): Run an arbitrary query against your MongoDB database.
- [Update Document](https://connectors.appmixer.com/connector/appmixer.mongodb/1.4.1/component/appmixer.mongodb.db.UpdateDocument.md) (`appmixer.mongodb.db.UpdateDocument`): Update a document(s) in a MongoDB collection.

## Changelog

### 1.4.1

- Security: upgraded tmp to 0.2.7 (symlink / path traversal advisory).

### 1.4.0

- Added test() (Flow Test Mode) to all triggers: NewDocument, UpdatedDocument, DeletedDocument.

### 1.3.2

- Added output examples to component schemas.

### 1.3.1

- Query: fix `clientClose` is not defined error.

### 1.3.0

- Enhanced connection management: reuse live connections, close stale connections, and avoid unnecessary connection creation.

### 1.2.3

- Remove temporary files after failed connection attempt.

### 1.2.2

- Update dependencies: mongodb.

### 1.2.1

- DeleteDocument and UpdateDocument tooltips improved.

### 1.2.0

- DeleteDocument and UpdateDocument connectors added.

### 1.1.4

- Warning in the authentication module removed.

### 1.1.3

- Updated tooltip.

### 1.1.2

- Connection URI marked as required.

### 1.1.1

- Replaced deprecated method with new one.

### 1.1.0

- Added support for TSL with .crt file.

### 1.0.0

- Initial version.
