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

@ -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")
```