Skip to content

Restoring from BSON dump breaks when directory contains metadata files created by mongodump #15

@cdxOo

Description

@cdxOo

By default recent versions of mongodump create metadata files in the form of .metadata.json within the dump diretory. Theese files are not filtered and therefor restore breaks when tying to deserialize them as bson.

I suggest checking for !(/\.metadata\.json$/).test(docName) in fromJSON() before processing them further.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions