This is the correct response for the service to get a count:
Is that what you have? I think looking at your mapping, the 'count' is on the same level as $.
hi
I'm facing a similar challenge to get count back from a query.
I'm trying to implement pagination and need count of my query results.
The pagination example
http://devcenter.appery.io/tutorials/...
states 'For example: run a service to count how many objects there are.'
How do I implement this ?
Rgds
Shawn
Further to this if I add a count parameter to the Request I only get the count variable and not the Query set itself.
I would like to get the count of my query to use in pagination and the results as well to render on my page.
If I add count = 1 in the request parameters of the main query then I only get the count variable but not the result set
Do I need to add a new service only for the count ?
Hi Shown,
If the response is "count = 1" you'll get in return only count the items will not be included.