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.host
MongoDB host.
-
port
(string) [required]Manifest path:
$.datastores[*].properties.port
MongoDB port.
-
user
(string) [required]Manifest path:
$.datastores[*].properties.user
MongoDB username for connecting to the database.
-
password
(string) [required]Manifest path:
$.datastores[*].properties.password
MongoDB password for connecting to the database.
-
database
(string) [required]Manifest path:
$.datastores[*].properties.database
Name of the MongoDB database to connect to.
Model Properties
Manifest path: $.models[*].properties
Example
Fields
-
collectionName
(string) [required]Manifest path:
$.models[*].properties.collectionName
Name of the MongoDB collection that the model corresponds to.
While interacting with the MongoDB collection corresponding to the model, Dore uses this
collectionName
to 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.fieldName
Name of the MongoDB field that the attribute corresponds to.