Skip to content

MongoClient vs MongoDB backward compatibility issues #25

Closed
@dmifedorenko

Description

@dmifedorenko

Hello.

I tried migrate from MongoClient to MongoDB and that was quite hard. Issues I'll found:

  1. MongoDB\Collection has no method to set read preference, we cant use constructor instead because of our private factory. Old MongoClient had setReadPreference, can you return it?
  2. MongoDB\Collection has no "limit" method like old MongoClient does, can you return it?
  3. findOne(['_id' => $id]) call returns item without "_id" property, it is empty (null). Can you fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions