Allow passing an Agg Builder Pipeline to the aggregate method

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.0.0
    • Affects Version/s: None
    • Component/s: Builder
    • None
    • PHP Drivers
    • Needed
    • Hide

      Update the examples using aggregation builder to remove the iterator_to_array introduced in https://github.com/mongodb/docs-php-library/pull/197

      Show
      Update the examples using aggregation builder to remove the iterator_to_array introduced in https://github.com/mongodb/docs-php-library/pull/197
    • None
    • None
    • None
    • None
    • None
    • None

      In v1, we could not change the signature of the method Collection::aggregate(array $pipeline) to also accept an instance of MongoDB\Builder\Pipeline object.

      So we can change it in v2 an simplify usage of the Agg builder.

              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: