ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / Big Data / Managing Mongo files
  • Properties specific to 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 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.
MongoAggregationPipelineUsed to retrieve documents that enter a multi-stage pipeline and are transformed into aggregated results.
MongoDeleteAllDeletes all the documents (corresponding to the specified filter) from a collection of a MongoDB database.
MongoDeleteCollectionDeletes a collection from a MongoDB database.
MongoDeleteOneDeletes a document from a collection in a MongoDB database.
MongoExecuteCommandRuns a generic command on a MongoDB database or on a MongoDB collection.
MongoFindFinds documents in a MongoDB collection.
MongoModifyAllModifies documents in a collection of a MongoDB database.
MongoModifyOneModifies a document in a collection of MongoDB database.
Prefix syntaxes can also be used:
<mongoCollection variable>.DeleteAllDeletes all the documents (corresponding to the specified filter) from a collection of a MongoDB database.
<mongoCollection variable>.DeleteCollectionDeletes a collection from a MongoDB database.
<mongoCollection variable>.DeleteOneDeletes a document from a collection in a MongoDB database.
<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.
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

Last update: 06/23/2023

Send a report | Local help