|
|
|
|
- Properties specific to mongoCollection variables
- Functions that use the mongoCollection type
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. 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 name | Type used | Effect |
---|
Name | Character string | Collection name. This property is read-only. | WriteConcern | mongoWriteConcern variable | Parameters for writing into the collection. |
Functions that use the mongoCollection type The following functions use mongoCollection variables:
| | MongoAdd | Adds one or more documents into a collection of MongoDB database. | MongoAggregationPipeline | Used to retrieve documents that enter a multi-stage pipeline and are transformed into aggregated results. | MongoDeleteAll | Deletes all the documents (corresponding to the specified filter) from a collection of a MongoDB database. | MongoDeleteCollection | Deletes a collection from a MongoDB database. | MongoDeleteOne | Deletes a document from a collection in a MongoDB database. | MongoExecuteCommand | Runs a generic command on a MongoDB database or on a MongoDB collection. | MongoFind | Finds documents in a MongoDB collection. | MongoModifyAll | Modifies documents in a collection of a MongoDB database. | MongoModifyOne | Modifies a document in a collection of MongoDB database. |
Prefix syntaxes can also be used:
Related Examples:
|
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.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|