• Fiete Börner's avatar
    Aggregate subdocument arrays (#918) · 81ae5a63
    Fiete Börner authored
    * add sub document aggregation array functionality
    
    example:
        Model::sum('subarray.*.price');
    
    this method is much simpler as to use as complex raw aggregations
    
    for this function a $unwind directive will be pushed in pipeline before $group
    
    * change testSubdocumentArrayAggregate
    
    change test for different scenarios
    
    * rebase to latest master and fix style ci issues
    81ae5a63
Name
Last commit
Last update
..
config Loading commit data...
models Loading commit data...
seeds Loading commit data...
AuthTest.php Loading commit data...
CollectionTest.php Loading commit data...
ConnectionTest.php Loading commit data...
EmbeddedRelationsTest.php Loading commit data...
ModelTest.php Loading commit data...
MysqlRelationsTest.php Loading commit data...
QueryBuilderTest.php Loading commit data...
QueryTest.php Loading commit data...
QueueTest.php Loading commit data...
RelationsTest.php Loading commit data...
SchemaTest.php Loading commit data...
SeederTest.php Loading commit data...
TestCase.php Loading commit data...
ValidationTest.php Loading commit data...