PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 modified by several WLanguage properties.
Note: See Declaring a variable for more details.
Example
Cnt is MongoConnexion = 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 available in read-only.
WriteConcernmongoWriteConcern variableParameters for writing into the collection.
Note: These properties can be handled by using one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Functions that use the mongoCollection type

The following functions are using the mongoCollection variables:
Versions 22 and later
MongoAdd
New in version 22
MongoAdd
MongoAdd
Adds one or more documents into a collection of MongoDB database.
Versions 22 and later
MongoDeleteAll
New in version 22
MongoDeleteAll
MongoDeleteAll
Deletes all the documents (corresponding to the specified filter) from a collection of a MongoDB database.
Versions 22 and later
MongoDeleteCollection
New in version 22
MongoDeleteCollection
MongoDeleteCollection
Deletes a collection from a MongoDB database.
Versions 22 and later
MongoDeleteOne
New in version 22
MongoDeleteOne
MongoDeleteOne
Deletes a document from a collection in a MongoDB database.
Versions 22 and later
MongoExecuteCommand
New in version 22
MongoExecuteCommand
MongoExecuteCommand
Runs a generic command on a MongoDB database or on a MongoDB collection.
Versions 22 and later
MongoFind
New in version 22
MongoFind
MongoFind
Finds documents in a MongoDB collection.
Versions 22 and later
MongoModifyAll
New in version 22
MongoModifyAll
MongoModifyAll
Modifies documents in a collection of a MongoDB database.
Versions 22 and later
MongoModifyOne
New in version 22
MongoModifyOne
MongoModifyOne
Modifies 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 required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment