Open
Description
Issue Description
Parse.Query.toJSON() returns an empty query when the query is an aggregate query.
Steps to reproduce
const query = new Parse.Query("MyCollection");
const pipeline = {
"match":{"language":{"$in":[null,"en"]}},
};
const results = await query.aggregate(pipeline);
const queryJson = query.toJSON(); // returns `{where: {}}`
Expected Results
query.toJSON()
should return the aggregate query.
Actual Outcome
query.toJSON()
returns {where: {}}
.
Environment Setup
-
Server
- parse-server version (Be specific! Don't say 'latest'.) : 3.8.0
- Operating System: -
- Hardware: -
- Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): -
-
JS SDK
- JS SDK version: 2.7.0
- Application? (Browser, Node, React-Native, etc): -