parse icon indicating copy to clipboard operation
parse copied to clipboard

upgrade

Open ahmedawad2 opened this issue 7 years ago • 3 comments

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 :+1: thanks :)

ahmedawad2 avatar Dec 17 '18 16:12 ahmedawad2

Hello~

I'll have a look at the aggregate function.

Parziphal avatar Dec 19 '18 14:12 Parziphal

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.

Parziphal avatar Dec 22 '18 18:12 Parziphal

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

ahmedawad2 avatar Dec 23 '18 09:12 ahmedawad2