Closed
Description
Hi,
I appreciate if someone can figuring out what is missing in my setup. thanks.
Issue Description
got an error when try to run aggregate request to a collection.
the collection is already filled with some data.
Steps to reproduce
- add some data to GameScore collection. just like the parse server example in readme
- run:
curl -X GET \
-H "X-Parse-Application-Id: myAppId" \
-H "X-Parse-Master-Key: myKey" \
-H "X-Parse-REST-API-Key: ${REST_API_KEY}" \
-G \
--data-urlencode 'group:{objectId:'null',total:{$sum:'$score'}}' \
http://localhost:1337/parse/aggregate/GameScore
- error message :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /parse/aggregate/GameScore</pre>
</body>
</html>
Expected Results
the result of aggregate data.
Actual Outcome
error above
Environment Setup
-
Server
- parse-server version : 2.7.1
- Operating System: OSX
- Hardware: Macbook Pro
- Localhost or remote server? localhost
-
Database
- MongoDB version: 3.4.10
- Storage engine:
- Hardware: local Macbook Pro
- Localhost or remote server? localhost
Logs/Trace
Include all relevant logs. You can turn on additional logging by configuring VERBOSE=1 in your environment.
Metadata
Metadata
Assignees
Labels
No labels