Closed
Description
Issue Description
With mongo db version 3.0.12 and 3.0.14 a geo query that also has an order specified always returns a maximum number of 1000 results.
Note: without specifying the order everything works fine.
Also, mongo db version 3.2.x fixes this issue.
Maybe this is related to #999 (comment)
Steps to reproduce
You need a table with over 1000 objects. Then:
new Parse.Query("Item")
.withinKilometers("location", new Parse.GeoPoint(50, 10), 4000)
.descending("createdAt")
.limit(5000)
.find()
Expected Results
I'd expect a maximum number of 5000 object to be returned.
Actual Outcome
A maximum number of 1000 objects is returned.
Environment Setup
-
Server
- parse-server version (Be specific! Don't say 'latest'.) : 2.3.8
- Operating System: Fedora Linux
- Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): Reproduced on Localhost, Heroku & Scalingo
-
Database
- MongoDB version: 3.0x & 3.2.x
- Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): Localhost, mlab, scalingo
Metadata
Metadata
Assignees
Labels
No labels