provenance property

String? provenance
final

A string value indicating where the write concern originated (known as write concern provenance). The following table shows the possible values for this field and their significance:

Provenance - Description

  • clientSupplied
    • The write concern was specified in the application.
  • customDefault
    • The write concern originated from a custom defined default value. See setDefaultRWConcern.
  • getLastErrorDefaults
    • The write concern originated from the replica set’s settings.getLastErrorDefaults field.
  • implicitDefault
    • The write concern originated from the server in absence of all other write concern specifications.

** NOTE **

This field is only set by the database when the Write concern is returned in a writeConcernError. It is NOT to be sent to the server

Implementation

final String? provenance;