tonyhb / tectonic

A declarative REST data loader for React and Redux. Docs @

Home Page:https://tonyhb.github.io/tectonic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Retrieving list data from a paginated resopnse

samifall opened this issue · comments

Hi,
I'm trying to getList data from a paginated response through SuperAgent.
my list response is formatted:
{
"count": total number of returned object,
"next": null,
"previous": null,
"results":[the list of objects]
}

Is there a way to configure SuperAgent to understand the above format.

thanks.

solved it through ( transform: data =>)

Yeah transforms are the right way to go here; unfortunately there's no "standard" way of formatting API results and I totally agree that it's great to have metadata included in the response body.