# MongoDB

Frends offers seamless integration with MongoDB, enabling you to effortlessly connect and automate data flows involving MongoDB.

Frends provides tasks for performing all core MongoDB operations.

By leveraging Frends' task-based approach, you can configure and customize MongoDB integrations according to your specific requirements. Frends offers a wide range of tasks that facilitate integrations to a variety of systems and protocols.

## Use cases

Below you will find typical use cases for MongoDB integrations and how they are implemented in Frends.

### Query documents

By using the [`Query`](https://docs.frends.com/tasks/tasks/mongodb/query) task, we can create an integration that queries a MongoDB collection and retrieves documents that match specific criteria for further processing.

<figure><img src="https://2096450325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FevBo49UTUjEN84O2WPl6%2Fuploads%2Fgit-blob-123fd2b3cf5f5a77702dfd87e4dbc6d38e4f5170%2Fmongo-query.svg?alt=media" alt=""><figcaption><p>Query</p></figcaption></figure>

### Insert document

By using a message queue trigger and the [`Insert`](https://docs.frends.com/tasks/tasks/mongodb/insert) task, we can create an integration that listens for incoming data and inserts it as documents into a MongoDB collection.

<figure><img src="https://2096450325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FevBo49UTUjEN84O2WPl6%2Fuploads%2Fgit-blob-b16e53ef9da8039d1f06b62844c09eb92a3045f8%2Fmongo-insert.svg?alt=media" alt=""><figcaption><p>Insert</p></figcaption></figure>
