Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-954

Add bypassDocumentValidation option to mongorestore and mongoimport

    XMLWordPrintableJSON

Details

    • Server Tools D (12/11/15), Server Tools E (01/08/16)
    • Completed

    Description

      mongorestore, mongoimport should have an option to bypass document validation (validation will be on by default).

      This is meant to be in alignment with other places where we allow pre-existing data to be out of conformance with the validator. mongorestore is arguably dealing with pre-existing data and used for backup/restore purposes. Without this bypass, that use case is no longer available.

      This may require an upgrade of the mgo driver to allow the insert write command to support this option. See: https://docs.mongodb.org/manual/release-notes/3.2/#bypass-validation

      Attachments

        Activity

          People

            judah.schvimer@mongodb.com Judah Schvimer
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: