Support DB aggregate by group

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major - P3
    • laravel-5.2.0
    • Affects Version/s: None
    • Component/s: Laravel
    • None
    • None
    • PHP Drivers
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?

      New methods in Eloquent\Builder and Query\Builder to get aggregation grouped by field values.

      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      Examples: https://github.com/mongodb/laravel-mongodb/blob/7b22c62b7ef00adf7a0ab2c815535fd3fc1a5d86/tests/QueryBuilderTest.php#L630-L664 

      3. Which versions of the driver/connector does this apply to?

      Require Laravel v11.38+ and Laravel-MongoDB 5.2+

      Show
      1. What would you like to communicate to the user about this feature? New methods in Eloquent\Builder and Query\Builder to get aggregation grouped by field values. 2. Would you like the user to see examples of the syntax and/or executable code and its output? Examples: https://github.com/mongodb/laravel-mongodb/blob/7b22c62b7ef00adf7a0ab2c815535fd3fc1a5d86/tests/QueryBuilderTest.php#L630-L664   3. Which versions of the driver/connector does this apply to? Require Laravel v11.38+ and Laravel-MongoDB 5.2+
    • None
    • None
    • None
    • None
    • None
    • None

      new methods: countByGroupminByGroupmaxByGroupsumByGroup and avgByGroup

      https://github.com/laravel/framework/pull/53679

       

              Assignee:
              Jérôme Tamarelle
              Reporter:
              Jérôme Tamarelle
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: