Add docs for addRawFunction function

Signed-off-by: David Arendsen <darendsen@gamepoint.com>
This commit is contained in:
David Arendsen 2022-12-31 18:09:19 +01:00
commit aeab6850e8
2 changed files with 35 additions and 1 deletions

View file

@ -8,4 +8,5 @@ On this page you will find the methods you can use in the query builder.
* [addDuplicate()](functions/addDuplicate.md) * [addDuplicate()](functions/addDuplicate.md)
* [addGroup()](functions/addGroup.md) * [addGroup()](functions/addGroup.md)
* [addLimit()](functions/addLimit.md) * [addLimit()](functions/addLimit.md)
* [addMean()](functions/addMean.md) * [addMean()](functions/addMean.md)
* [addRawFunction()](functions/addRawFunction.md)

View file

@ -0,0 +1,33 @@
# Flux Query Builder Docs
## Functions &raquo; addRawFunction()
### Parameters:
<table>
<tbody>
<tr>
<th>Name</th>
<th>Data type</th>
<th>Description</th>
</tr>
<tr>
<td>input</td>
<td>string</td>
<td>Insert any Flux function here.</td>
</tr>
</tbody>
</table>
### Example
```php
->addRawFunction('|> aggregateWindow(every: 20s, fn: mean, timeDst: "_time")')
```
This will result in the following Flux function part:
```
|> aggregateWindow(every: 20s, fn: mean, timeDst: "_time")
```