#ryuuuu

1 messages · Page 1 of 1 (latest)

polar flareBOT
bronze sapphire
#

No it's the id for the corresponding object you want to paginate on

shut shard
#

Is there any way to achieve getting invoices from a certain index to another? It would be kinda hard to get the id of the invoice at the end of my table before the next load more

bronze sapphire
#

Don't know what you mean by 'getting invoices from a certain index to another'

shut shard
#

I see. What i meant is something similar to the SQL skip() and take()(this is how i do the load more in the rest of my app), basically the same as the stripe pagination but starting_from would be the index of the invoice(in the array of all invoices) instead of the ID. I understand why it's done like this tho

bronze sapphire
#

Did you try autopagination that's available in the SDKs?

shut shard
#

Ah i just looked it up and its probably not gonna fit in my app, but it's ok, i can use the starting_after afterall