Skip to content

$distinct

Returns the distinct set of the input array.

Options

  • values (required) Input array.

Example

{
    "distinct": {
        "$distinct": ["badger", "badger", "halibut"]
    }
}
{
    "distinct": ["badger", "halibut"]
}