OrbisWeb3 / orbis-sdk

Official repository for the Orbis SDK.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

limit as parameter in getPosts()

tempe-techie opened this issue · comments

Currently the getPosts() function in the SDK has a hardcoded post limit at 50.

It would be great if limit was a parameter so that developers could choose a different size limit:

async getPosts(options, page = 0, limit = 50) {

If that only requires changes in this function (and no backend changes), I can do that and push it as PR, to save you some time. Please let me know @baptistegreve 🙂

I actually worked on this last week and it should be available now in version 0.4.32 of the SDK! I will add this to the doc but for now here it is: https://github.com/OrbisWeb3/orbis-sdk/blob/master/index.js#L1324

Awesome, thanks @baptistegreve 🤩 Will update to the newest SDK version 🙂