Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-250

Support bypassDocumentValidation

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • None

      The CRUD specification has added parameters to many of the options classes called bypassDocumentValidation. The following classes have been updated:

      • AggregateOptions: only for $out
      • InsertOneOptions: This is a new class, now with a single field.
      • InsertManyOptions
      • UpdateOptions
      • BulkWriteOptions
      • FindOneAndReplaceOptions
      • FindOneAndUpdateOptions

      Using the new option requires the BypassDocumentValidation permission which is granted to the built-in roles 'restore' and 'dbadmin'. Other commands that have been updated, but not specified in the CRUD spec are:

      • applyOps
      • clone
      • cloneCollection
      • copyDb
      • mapReduce

      Implementation for Unacknowledged Writes

      If your driver sends unacknowledged writes using op codes (OP_INSERT, OP_UPDATE, OP_DELETE), you MUST raise an error when bypassDocumentValidation is explicitly set (true or false) by a user on >= 3.2 servers.

            Assignee:
            craig.wilson@mongodb.com Craig Wilson
            Reporter:
            barrie Barrie Segal
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: