Ari Gesher
Ari Gesher

Reputation: 601

How to calculate pagination in magritte YAML configs?

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?

Upvotes: 1

Views: 147

Answers (0)

Related Questions