I am using getOrders API with limit and page options. To render this on our integrated frontend we need to know what is the total so we can render page numbers in our frontend. Thanks
I don't believe this is possible. This is pretty common in modern APIs. The paging is to optimize the database queries by only fetching a subset of the data. So Neto doesn't actually know the total number of records in the query result - that would require a full table scan and defeat the purpose of paging.
Thanks for the prompt response. I think it depends on how Neto is designed and the type of database you use. There are lots of ways to efficiently return total number of records without scanning the full table.
Morden APIs indeed provides many ways to handle this situations as API consumer needs to know that field in order to render the total number of pages available.
Anyway, I would not go in detail. We will handle that in our integration side with edges and cursors.