chore: updated some docs

main
Antonio De Lucreziis 2 years ago
parent b8d8b08341
commit 719022a75f

@ -148,15 +148,20 @@ Each pipeline is a list of operations, the first field in an operation should be
```yaml ```yaml
use: chunk use: chunk
size: <number> size: <number>
skip_remaining: <true or false> # optional, defaults to "false"
``` ```
This operation will group the incoming items in chunk with the provided size (except for the last one that can end up holding less items). The output items hold no data but have the following structure This operation will group the incoming items in chunk with the provided size (except for the last one that can end up holding less items).
The option `skip_remaining` will exclude the last chunk if it doesn't have exactly "size" items.
The output items hold no data but have the following structure
```go ```go
Metadata: { Metadata: {
Page: <Page Number> Index: /* 0-indexed current chunk number */,
TotalPages: <Total Page Count> Total: /* total number of chunks */,
Items: <Chunk> Items: /* list of items of this chunk */,
} }
``` ```

Loading…
Cancel
Save