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

$unwind: Throw an exception if the field path is a string without `$` prefix

    • Type: Icon: New Feature New Feature
    • Resolution: Works as Designed
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Builder
    • None

      $unwind takes an ArrayFieldPath as argument.

      It also accepts a string, that must be prefixed with a single `$`.

      Throw an InvalidArgumentException it the operator is a string without `$` prefix.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: