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

Returning object when expecting array - findOneAndUpdate

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

      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 Unassigned
            Reporter:
            jesperbendtsen83@gmail.com Jesper Erik Bendtsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: