Open mtrezza opened 5 years ago
You want to implement query.setPipeline()
?
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?
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
@RaschidJFR why are you asking?
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 toJSON()
.
Your PR seems to be about mixing the equalTo
condition into the pipeline.
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.
Related in what sense?
@mtrezza I was just gathering information about similar problems to mine to try to solve them at once. Your issue is caused because aggregate()
is executes the query but does not modify it, same as find()
(they are sibling functions). So if you don't have a use for it anymore I'll just ignore it in my proposal.
I've created #1171 so let's move the conversation there. Please list the potential issues you've found.
I forgot about this feature, I can do a PR if you want @dplewis Please have a look at my PR #1170 and let me know if you need me to include anything else in case it goes ahead.
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...
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
-