This service requires MESG Engine to be installed first.
You can install MESG Engine by running the following command or follow the installation guide.
bash <(curl -fsSL https://mesg.com/install)
To deploy this service, go to this service page on the MESG Marketplace and click the button "get/buy this service".
Task key: write
Name | Key | Type | Description |
---|---|---|---|
collection | collection |
String |
Collection name |
data | data |
Any |
Data to insert. It can be document or array of documents |
uniqueFields | uniqueFields |
String |
optional Fields to be considered unique as together |
Output key: _ids
_ids of inserted documents
Name | Key | Type | Description |
---|
Task key: aggregate
Name | Key | Type | Description |
---|---|---|---|
collection | collection |
String |
Collection name |
lookups | lookups |
Object |
optional Join collections |
match | match |
Object |
optional Filtering query |
project | project |
Object |
optional Document fields to select |
limit | limit |
Number |
optional Limit for selecting documents |
offset | offset |
Number |
optional Offset for selecting documents |
sort | sort |
Object |
optional Sort documents |
search | search |
String |
optional Text search |
noID | noID |
Boolean |
optional Removes _id field from all documents |
one | one |
Boolean |
optional Only pick first document |
Output key: data
One document returned when 'one' set to true otherwise array of documents
Name | Key | Type | Description |
---|