Dore MongoDB Protocol
Protocol name: mongodb
Manifest fields
| Field in Manifest | What it represents |
|---|---|
| Datastore | Database |
| Model | Collection |
| Attribute | Field |
Datastore Properties
Manifest path: $.datastores[*].properties
Example
| MongoDB Datastore properties example | |
|---|---|
Fields
-
host(string) [required]Manifest path:
$.datastores[*].properties.hostMongoDB host.
-
port(string) [required]Manifest path:
$.datastores[*].properties.portMongoDB port.
-
user(string) [required]Manifest path:
$.datastores[*].properties.userMongoDB username for connecting to the database.
-
password(string) [required]Manifest path:
$.datastores[*].properties.passwordMongoDB password for connecting to the database.
-
database(string) [required]Manifest path:
$.datastores[*].properties.databaseName of the MongoDB database to connect to.
Model Properties
Manifest path: $.models[*].properties
Example
Fields
-
collectionName(string) [required]Manifest path:
$.models[*].properties.collectionNameName of the MongoDB collection that the model corresponds to.
While interacting with the MongoDB collection corresponding to the model, Dore uses this
collectionNameto refer to the model in the MongoDB database.
Attribute Properties
Manifest path: $.models[*].attributes[*].properties
Example
Fields
-
fieldName(string) [required]Manifest path:
$.models[*].attributes[*].properties.fieldNameName of the MongoDB field that the attribute corresponds to.