Skip to content

emrekeskinmac/mongodb-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB Service

MongoDB is a NOSQL Database

Contents

Installation

MESG Core

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)

Service

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

Definitions

Tasks

delete

Task key: delete

Delete data to collection

Inputs

Name Key Type Description
collectionName collectionName String Collection Name
findObject findObject Object Data to be deleted

Outputs

failure

Output key: failure

Name Key Type Description
message message String An error occurs

success

Output key: success

Name Key Type Description
result result Boolean When the data is successfully delete

read

Task key: read

Read data to collection

Inputs

Name Key Type Description
collectionName collectionName String Collection name
filterObject filterObject Object optional Filter object
findObject findObject Object Data to be read

Outputs

failure

Output key: failure

Name Key Type Description
message message String An error occurs

success

Output key: success

Name Key Type Description
data data Any When the data is successfully read

update

Task key: update

Update data to collection

Inputs

Name Key Type Description
collectionName collectionName String Collection Name
findObject findObject Object Data to be update
updateObject updateObject Object New Data

Outputs

failure

Output key: failure

Name Key Type Description
message message String An error occurs

success

Output key: success

Name Key Type Description
result result Boolean When the data is successfully update

write

Task key: write

Write data to collection

Inputs

Name Key Type Description
collectionName collectionName String Collection name
saveObject saveObject Object Data to be saved

Outputs

failure

Output key: failure

Name Key Type Description
message message String An error occurs

success

Output key: success

Name Key Type Description
id id String When the data is successfully write

About

A MESG Core service to MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published