How can I get 10 last records?

I have 22 records in my table, how can I get last 10 records?

Hello @1110

You can sort records by “created” field

https://backendless.com/docs/js/data_sorting.html

Regards, Vlad

no, I will receive all 22 records, but I need 10 last
In Backendless I not found function LIMIT

here is a doc for paging options Data retrieval with Paging - Backendless SDK for JavaScript API Documentation

by default pageSize=10, so specifying sort option will be enough to receive only 10 objects.

Also, you can use our REST Console to check what response you receive according to specified parameters.

Regards, Vlad

2 Likes