|
|
|
|
|
- Properties specific to mongoCollection variables
- Functions that use the mongoCollection type
mongoCollection (Variable type) In french: mongoCollection
The mongoCollection type is used to define the advanced characteristics of a collection in a database of a MongoDB server. You can define and change the characteristics of this collection using different WLanguage properties. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. Cnx is mongoConnection = MongoCreate(AdresseServeurMongoDB)
FOR EACH BaseMongo OF Cnx.Database
Trace(BaseMongo.Nom)
FOR EACH CollectionMongo OF BaseMongo.Collection
Trace(TAB + CollectionMongo.Nom)
END
END
Properties 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. |
Remarks 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|