MongoDB is a NOSQL Database
This service requires MESG Core to be installed first.
You can install MESG Core by running the following command or follow the installation guide.
bash <(curl -fsSL https://mesg.com/install)
Download the source code of this service, and then in the service's folder, run the following command:
mesg-core service deploy https://github.com/emrekeskinmac/mongodb-service
Task key: delete
Delete data to collection
Name | Key | Type | Description |
---|---|---|---|
collectionName | collectionName |
String |
Collection Name |
findObject | findObject |
Object |
Data to be deleted |
Output key: failure
Name | Key | Type | Description |
---|---|---|---|
message | message |
String |
An error occurs |
Output key: success
Name | Key | Type | Description |
---|---|---|---|
result | result |
Boolean |
When the data is successfully delete |
Task key: read
Read data to collection
Name | Key | Type | Description |
---|---|---|---|
collectionName | collectionName |
String |
Collection name |
filterObject | filterObject |
Object |
optional Filter object |
findObject | findObject |
Object |
Data to be read |
Output key: failure
Name | Key | Type | Description |
---|---|---|---|
message | message |
String |
An error occurs |
Output key: success
Name | Key | Type | Description |
---|---|---|---|
data | data |
Any |
When the data is successfully read |
Task key: update
Update data to collection
Name | Key | Type | Description |
---|---|---|---|
collectionName | collectionName |
String |
Collection Name |
findObject | findObject |
Object |
Data to be update |
updateObject | updateObject |
Object |
New Data |
Output key: failure
Name | Key | Type | Description |
---|---|---|---|
message | message |
String |
An error occurs |
Output key: success
Name | Key | Type | Description |
---|---|---|---|
result | result |
Boolean |
When the data is successfully update |
Task key: write
Write data to collection
Name | Key | Type | Description |
---|---|---|---|
collectionName | collectionName |
String |
Collection name |
saveObject | saveObject |
Object |
Data to be saved |
Output key: failure
Name | Key | Type | Description |
---|---|---|---|
message | message |
String |
An error occurs |
Output key: success
Name | Key | Type | Description |
---|---|---|---|
id | id |
String |
When the data is successfully write |