Manipulate object data
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
Task key: merge
merge multiple objects into one
Name | Key | Type | Description |
---|---|---|---|
sources | sources |
Object |
Array of objects |
Output key: failure
Name | Key | Type | Description |
---|---|---|---|
message | message |
String |
Output key: success
Name | Key | Type | Description |
---|---|---|---|
data | data |
Object |
Merged object data |
Task key: select
partially select some fields from object or array of objects
Name | Key | Type | Description |
---|---|---|---|
fields | fields |
String |
field key patterns to match with field keys of objects |
flatten | flatten |
Boolean |
optional flatten fields from child object to root object |
source | source |
Any |
source data can be object or array of objects |
Output key: failure
Name | Key | Type | Description |
---|---|---|---|
message | message |
String |
Output key: success
Name | Key | Type | Description |
---|---|---|---|
data | data |
Any |
New object or array of objects from selected fields |
Task key: value
Get named values from requested fields of matching objects
Name | Key | Type | Description |
---|---|---|---|
from | from |
String |
Field to get its value from the matching object |
match | match |
Object |
Filter to match with object fields |
sources | sources |
Object |
Array of objects |
Output key: failure
Name | Key | Type | Description |
---|---|---|---|
message | message |
String |
Output key: success
Name | Key | Type | Description |
---|---|---|---|
data | data |
Any |
Named values that built from requested fields of matching objects |