Discussions

Ask a Question
Back to all

When using the API, how to retrieve only latest data from order and bills table

Hi,
To avoid retrieving the entire database all the time, I want to retrieve only rows where updatedAt is from past 5 days.

I'm struggling with this because I dont want my script to parse all the bookmarks for this, I wish I could orderby the dataset in backend so that when I start getting older rows I stop fetching data.

Please Help.

Thanks