mongo_distinct
Find unique values for a given field in a MongoDB collection. Optionally apply a filter query to refine results.
Instructions
Find distinct values for a specified field in a MongoDB collection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Field path to get distinct values for. | |
| filter | No | JSON string filter query. | |
| database | No | ||
| collection | Yes | ||
| connectionId | No | Id of the mongodb connection to use. Optional when only one mongodb connection is configured. |