# Query

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.MongoDB>

{% tabs %}
{% tab title="Parameter: Input" %}

| Name              | Description                                                                                      |
| ----------------- | ------------------------------------------------------------------------------------------------ |
| Filter : `String` | <p>Filter document.</p><p><br>Default: <code>-</code><br>Example: <code>{'foo':'bar'}</code></p> |
| {% endtab %}      |                                                                                                  |

{% tab title="Parameter: Connection" %}

| Name                          | Description                                                                                                                               |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| 🗝ConnectionString : `String` | <p>Connection string.</p><p><br>Default: <code>-</code><br>Example: <code>mongodb://foo:bar\@localhost:00000/?authSource=admin</code></p> |
| Database : `String`           | <p>Database.</p><p><br>Default: <code>-</code><br>Example: <code>foo</code></p>                                                           |
| CollectionName : `String`     | <p>Collection name.</p><p><br>Default: <code>-</code><br>Example: <code>bar</code></p>                                                    |
| {% endtab %}                  |                                                                                                                                           |

{% tab title="Result: Result" %}

| Name                  | Description                                                                                                                                                                         |
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Success : `Boolean`   | <p>Query completed.<br>Example: <code>true</code></p>                                                                                                                               |
| Data : `List<String>` | <p>A list with the documents matching the search criteria .<br>Example: <code>"Object{ "\_id" : { "$oid" : "635b6e17083070195c6e98f0" }, "foo" : "bar", "bar" : "foo" }"</code></p> |
| {% endtab %}          |                                                                                                                                                                                     |

{% tab title="Changelog" %}

## Changelog

### \[1.0.1] - 2023-11-23

#### Fixed

* Fixed dll error when importing the Task to Frends by adding local dll reference to the project file.

### \[1.0.0] - 2022-10-28

#### Added

* Initial implementation
  {% endtab %}
  {% endtabs %}
