Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-1617

Allow passing an Agg Builder Pipeline to the aggregate method

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None