PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Properties specific to the description of mongoCollection variables
  • Functions that use the mongoCollection type
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
mongoCollection (Type of variable)
In french: mongoCollection
The mongoCollection type is used to define the advanced characteristics of a collection in a database of a MongoDB server. The characteristics of this collection can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
Cnt is mongoConnection = MongoCreate(MongoDBServerAddress)
FOR EACH MongoDatabase OF Cnt.Database
Trace(MongoDatabase.Name)
FOR EACH MongoCollection OF MongoDatabase.Collection
Trace(TAB + MongoCollection.Name)
END
END
Remarks

Properties specific to the description of mongoCollection variables

The following properties can be used to handle a Mongo collection:
Property nameType usedEffect
NameCharacter stringCollection name.
This property is read-only.
WriteConcernmongoWriteConcern variableParameters for writing into the collection.

Functions that use the mongoCollection type

The following functions use mongoCollection variables:
MongoAddAdds one or more documents into a collection of MongoDB database.
MongoFindFinds documents in a MongoDB collection.
MongoExecuteCommandRuns a generic command on a MongoDB database or on a MongoDB collection.
MongoModifyAllModifies documents in a collection of a MongoDB database.
MongoModifyOneModifies a document in a collection of MongoDB database.
MongoAggregationPipelineUsed to retrieve documents that enter a multi-stage pipeline and are transformed into aggregated results.
MongoDeleteCollectionDeletes a collection from a MongoDB database.
MongoDeleteAllDeletes all the documents (corresponding to the specified filter) from a collection of a MongoDB database.
MongoDeleteOneDeletes a document from a collection in a MongoDB database.
Prefix syntaxes can also be used:
<mongoCollection variable>.ExecuteCommandRuns a generic command on a MongoDB collection.
<mongoCollection variable>.ModifyAllModifies documents in a collection of a MongoDB database.
<mongoCollection variable>.ModifyOneModifies a document in a collection of MongoDB database.
<mongoCollection variable>.DeleteCollectionDeletes a collection from a MongoDB database.
<mongoCollection variable>.DeleteAllDeletes all the documents (corresponding to the specified filter) from a collection of a MongoDB database.
<mongoCollection variable>.DeleteOneDeletes a document from a collection in a MongoDB database.
Related Examples:
Native access to MongoDB Unit examples (WINDEV): Native access to MongoDB
[ + ] This example shows how to use the main functions of native access to MongoDB databases: adding data, reading (searching), modifying and deleting data in the database. The example also shows functions for saving files in the MongoDB GridFS data system.
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment