Add addUnique function

Signed-off-by: David Arendsen <darendsen@gamepoint.com>
This commit is contained in:
David Arendsen 2023-02-12 17:54:18 +01:00
commit 483e67a2e8
6 changed files with 110 additions and 0 deletions

View file

@ -24,6 +24,7 @@ or [addRangeInBetween()](functions/addRangeInBetween.md)
* [addReduce()](functions/addReduce.md)
* [addSort()](functions/addSort.md)
* [addSum()](functions/addSum.md)
* [addUnique()](functions/addUnique.md)
* [addUnwindow()](functions/addUnwindow.md)
* [addWindow()](functions/addWindow.md)

View file

@ -0,0 +1,39 @@
# Flux Query Builder Docs
## Functions &raquo; addUnique()
### Parameters:
<table>
<tbody>
<tr>
<th>Name</th>
<th>Required</th>
<th>Data type</th>
<th>Description</th>
</tr>
<tr>
<td>column</td>
<td>No</td>
<td>string</td>
<td>Column to search for unique values. Default is _value.</td>
</tr>
</tbody>
</table>
### Example
```php
->addUnique("_value")
```
This will result in the following Flux function part:
```
|> unique(column: "_value")
```
### Extra resources
* [Flux documentation](https://docs.influxdata.com/flux/v0.x/stdlib/universe/unique/)