|
|
|
|
Constants for managing MongoDB databases
Display constants used by prefix syntaxes onlyThe following constants are used by the Mongoxxx functions: | | | Constant | Details | Function |
---|
mwcDefault | Minimum number of nodes that must have acknowledged the process to consider that the writing is performed: a single node must have acknowledged the process to consider that the writing is performed. | mongoWriteConcern type | mwcMajority | Minimum number of nodes that must have acknowledged the process to consider that the writing is performed: most of the nodes must have acknowledged the process to consider that the writing is performed. | mongoWriteConcern type | mwcUnacknowledged | Minimum number of nodes that must have acknowledged the process to consider that the writing is performed: No node must have acknowledged the process to consider that the writing is performed. Caution, no error is returned in this case. | mongoWriteConcern type | mwcTag | Minimum number of nodes that must have acknowledged the process to consider that the writing is performed: the number of nodes is the one defined in a pre-configuration defined on the server. | mongoWriteConcern type | mongoAddIfNotFound | Used to add a document if it does not exist in the collection. | MongoModifyAll MongoModifyOne | mongoContinueIfError | Used to add the next document even if the previous document triggered an error. | MongoAdd | mongoReturnValueAfter | Used to return the document after modification. By default, if this constant is not used, the document returned corresponds to the document before modification. | MongoModifyOne | mongoWithoutValidation | Does not check the document structure. | MongoAdd MongoModifyAll |
The following constants are used by the Mongoxxx functions (prefix syntax): | | | Constant | Details | Function |
---|
mwcDefault | Minimum number of nodes that must have acknowledged the process to consider that the writing is performed: a single node must have acknowledged the process to consider that the writing is performed. | mongoWriteConcern type | mwcMajority | Minimum number of nodes that must have acknowledged the process to consider that the writing is performed: most of the nodes must have acknowledged the process to consider that the writing is performed. | mongoWriteConcern type | mwcUnacknowledged | Minimum number of nodes that must have acknowledged the process to consider that the writing is performed: No node must have acknowledged the process to consider that the writing is performed. Caution, no error is returned in this case. | mongoWriteConcern type | mwcTag | Minimum number of nodes that must have acknowledged the process to consider that the writing is performed: the number of nodes is the one defined in a pre-configuration defined on the server. | mongoWriteConcern type | mongoAddIfNotFound | Used to add a document if it does not exist in the collection. | <mongoCollection variable>.ModifyAll <mongoCollection variable>.ModifyOne | mongoContinueIfError | Used to add the next document even if the previous document triggered an error. | <mongoCollection variable>.Add | mongoReturnValueAfter | Used to return the document after modification. By default, if this constant is not used, the document returned corresponds to the document before modification. | <mongoCollection variable>.ModifyOne | mongoWithoutValidation | Does not check the document structure. | <mongoCollection variable>.Add <mongoCollection variable>.ModifyAll |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|