Skip to content
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

upgrade #26

Open
ahmedawad2 opened this issue Dec 17, 2018 · 3 comments
Open

upgrade #26

ahmedawad2 opened this issue Dec 17, 2018 · 3 comments

Comments

@ahmedawad2
Copy link

hello all,
thank you for such a great work.
i want to mention that Parse SDK has an update that includes aggregate() function, which helps aggregation in Parse.
you need to update to a later version indeed.
i really need that 👍
thanks :)

@Parziphal
Copy link
Owner

Hello~

I'll have a look at the aggregate function.

@Parziphal
Copy link
Owner

Parziphal commented Dec 22, 2018

I've changed the version constraint so it requires Parse 1.2+ (instead of 1.2.*).

You can call aggregate() like this:

$results = Post::aggregate($pipeline);

aggregate() will be called directly to the ParseQuery through method overloading.

I was checking if it'd be necessary to create a new aggregate() method to handle the results, but I tested the aggregate() method of ParseQuery and saw it returns arrays instead of ParseObjects, so a new method is not necessary, the results value is returned as is.

@ahmedawad2
Copy link
Author

thank you very much,
that was a really appreciated effort :)
good luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants