Skip to content

[Feature Request] add db.getCollectionNames() #665

Closed

Description

@engFelipeMonteiro

it can be easly implemented with:

mm = mongomock.MongoClient()['testDatabase']
...
processing
...
collectionNames =  [ x for x in mm._collection_accesses.keys()]

Activity

  1. pcorpet commented on Oct 3, 2020

    @pcorpet
    Member

    Hi @engFelipeMonteiro , thanks for the bug report.

    I believe that db.getCollectionNames is using the mongo script syntax. Pymongo is using db.list_collection_names which is implemented in pymongo.

    Feel free to reopen with more details if I got it wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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