fetch_until
will retrieve paginated results until a condition is met.
This is useful when searching for a particular value or record.
fetch_until(fn, .until, ...)
fn | The API function to be called. |
---|---|
.until | A function which returns a boolean value.
|
... | Arguments passed to |
A list
with the concatenated results of each page of fn
.
Other pagination:
fetch_all()
if (FALSE) { columns <- fetch_until(tables_list_columns, .until = function(x) x == "voterbase_id") }