How to calculate pagination in magritte YAML configs?

133 Views Asked by At

I'm looking to pull data from a REST API that uses a record offset system. I need to perform basic arithmetic on the returned (current_offset + item_count) data to calculate the next offset.

Unfortunately, this API uses a variable page size, so simple offsets won't work. Nor does it return the next offset to use in the response, just the component values.

However, it appears that there's no way to do even basic arithmetic that I can see. Am I just missing it?

0

There are 0 best solutions below