Returning object when expecting array - findOneAndUpdate

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: 1.0.2
    • Component/s: None
    • None
    • Environment:
      Windows
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Dear mongoDB

      Just a heads up, when setting this in client, I expect arrays on all returns.

      new MongoDB\Client(
              'mongodb://server:port',
              [],
              ['typeMap' => ['root' => 'array', 'document' => 'array', 'array' => 'array']]
      );
      

      Calling this method findOneAndUpdate It returns an object?

      Best regards
      Jesper Bendtsen
      Denmark

              Assignee:
              Unassigned
              Reporter:
              Jesper Erik Bendtsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: