Closed
Description
- You've met the prerequisites: https://github.com/ParsePlatform/parse-server/wiki/Parse-Server-Guide#prerequisites.
- You're running the latest version of Parse Server: https://github.com/ParsePlatform/parse-server/releases
- You've searched through existing issues: https://github.com/ParsePlatform/Parse-Server/issues?utf8=%E2%9C%93&q=is%3Aissue Chances are that your issue has been reported or resolved before.
Environment Setup
- Server:
- parse-server: 2.2.9
- operating system: Windows 7
- local
- Database: mongoDB 3.2.4 local
Steps to reproduce
After count problem solved #1726, I want to get the count only so add the limit parameter, but it didn't work.
$ curl -X GET \
-H "X-Parse-Application-Id: myAppId" \
-H "X-Parse-Master-Key: myMasterKey" \
http://localhost:1337/parse/installations/?count=1&limit=0
This is what I got:
{
results: [
...my installations...
],
count: 5
}
But what I expected is like current Parse REST API when I use the command below:
$ curl -X GET \
-H "X-Parse-Application-Id: myAppId" \
-H "X-Parse-Master-Key: myMasterKey" \
-H "X-Parse-REST-API-Key: myRestApiKey" \
https://api.parse.com/1/installations/?count=1&limit=0
It response with installations count like this:
{
results: [],
count: 5
}
I tried that parameter like limit = 1 limit = 2 worked good, only 0 not.