PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Constants for managing MongoDB databases
Display constants used by prefixed syntaxes only
Versions 24 and later
WINDEVLinux These constants are now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux These constants are now available for WEBDEV sites in Linux.
New in version 24
WINDEVLinux These constants are now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux These constants are now available for WEBDEV sites in Linux.
WINDEVLinux These constants are now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux These constants are now available for WEBDEV sites in Linux.
The following constants are used by the Mongoxxx functions:
ConstantDetailsFunction
mongoAddIfNotFoundUsed to add a document if it does not exist in the collection.MongoModifyAll
MongoModifyOne
mongoContinueIfErrorUsed to add the next document even if the previous document triggered an error.MongoAdd
mongoReturnValueAfterUsed to return the document after modification. By default, if this constant is not used, the document returned corresponds to the document before modification.MongoModifyOne
mongoWithoutValidationDoes not check the document structure.MongoAdd
MongoModifyAll
mwcDefaultMinimum 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
mwcMajorityMinimum 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
mwcTagMinimum 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
mwcUnacknowledgedMinimum 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
The following constants are used by the Mongoxxx functions (prefixed syntax):
ConstantDetailsFunction
mongoAddIfNotFoundUsed to add a document if it does not exist in the collection.<mongoCollection variable>.ModifyAll
<mongoCollection variable>.ModifyOne
mongoContinueIfErrorUsed to add the next document even if the previous document triggered an error.<mongoCollection variable>.Add
mongoReturnValueAfterUsed 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
mongoWithoutValidationDoes not check the document structure.<mongoCollection variable>.Add
<mongoCollection variable>.ModifyAll
mwcDefaultMinimum 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
mwcMajorityMinimum 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
mwcTagMinimum 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
mwcUnacknowledgedMinimum 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
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment