Add support for withCount in Eloquent query hydration

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • None
    • None
    • None
    • None
    • None
    • None

      Rahul-codoffer has created Issue #3003: withCount is not working in laravel-mongodb. This Jira ticket was filed by GromNaN

      Issue Text:

      • Laravel-mongodb Version: 4.3
      • PHP Version:8.3.7

      Description:

      Getting {}This method is not supported by MongoDB. Try \"toMql()\" instead{} on withCount function


       

      Expected: Investigate a Laravel-MongoDB only fix - how can we create a new method for aggregating by group in the Laravel-MongoDB package, without making any changes in core Laravel framework. 

              Assignee:
              Jérôme Tamarelle
              Reporter:
              TPM Jira Automations Bot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 1 week
                  1w
                  Remaining:
                  Remaining Estimate - 1 week
                  1w
                  Logged:
                  Time Spent - Not Specified
                  Not Specified