-
-
Notifications
You must be signed in to change notification settings - Fork 596
Parse.Query.toJSON() not working for aggregate query #918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You want to implement |
Actually I will close this for now if that's OK, there may be more important issues/feature requests coming up. At least we have it documented here. |
@mtrezza what's your use case for this feature? |
@RaschidJFR why are you asking? Sent with GitHawk |
I forgot about this feature, I can do a PR if you want |
No-one has voiced any need for it to my knowledge, and I personally don’t need it anymore, but it would certainly be a nice-to-have feature. Sent with GitHawk |
Because I've just started working on #1170 and I thought it might be related. |
@RaschidJFR Related in what sense? This issue is about the pipeline not being serialized with Can you please open an issue for your PR where you describe your intention, so the community can debate it if necessary? I already see some potential issues with that PR. |
@mtrezza I was just gathering information about similar problems to mine to try to solve them at once. Your issue is caused because I've created #1171 so let's move the conversation there. Please list the potential issues you've found. |
I'd love to have this feature. I there something I can do to help this move along? |
Thanks for asking @zanderisrael, you could open a PR. To my knowledge no-one has worked on it so far. It seems fairly straight forward, because a lot of the logic to produce the JSON output for non-aggregate queries already exists. |
Ok then, i'll have a look. |
Looks like I don't need this in the end. Someone else can pick this up... |
For this to work we would have to add
Becomes
|
Issue Description
Parse.Query.toJSON() returns an empty query when the query is an aggregate query.
Steps to reproduce
Expected Results
query.toJSON()
should return the aggregate query.Actual Outcome
query.toJSON()
returns{where: {}}
.Environment Setup
Server
JS SDK
Logs/Trace
The text was updated successfully, but these errors were encountered: