Add addLast() function

This commit is contained in:
David Arendsen 2023-02-10 11:40:35 +01:00
commit 3d32bdb45d
6 changed files with 100 additions and 0 deletions

View file

@ -17,6 +17,7 @@ or [fromBucket()](functions/fromBucket.md)
or [addRangeInBetween()](functions/addRangeInBetween.md)
* [addReduce()](functions/addReduce.md)
* [addSum()](functions/addSum.md)
* [addLast()](functions/addLast.md)
Anything missing here? You can use this method to add anything to the query:
* [addRawFunction()](functions/addRawFunction.md)

39
docs/functions/addLast.md Normal file
View file

@ -0,0 +1,39 @@
# Flux Query Builder Docs
## Functions » addLast()
### 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 use to verify the existence of a value. Default is "_value".</td>
</tr>
</tbody>
</table>
### Example
```php
->addLast('something')
```
This will result in the following Flux function part:
```
|> last(column: "something")
```
### Extra resources
* [Flux documentation](https://docs.influxdata.com/flux/v0.x/stdlib/universe/last/)