Skip to content

count = 1 is not work in installations #1726

Closed
@ssk7833

Description

@ssk7833

Environment Setup

  • Server:
    • parse-server: 2.2.7
    • operating system: Windows 7
    • local
  • Database: mongoDB 3.2.4 local

Steps to reproduce

$ curl -X GET \ 
  -H "X-Parse-Application-Id: myAppId" \
  -H "X-Parse-Master-Key: myMasterKey" \
  http://localhost:1337/parse/installations/?count=1

This is what I got:

{
  "results": [
    ...my installations...
  ]
}

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

It response with installations count like this:

{
  "results": [
    ...my installations...
  ],
  count: 5
}

Is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions