project(projections)
Create a new body by projecting value paths from the current one to the new one.
Arguments
| Argument | Type | Description |
|---|---|---|
| projections | array | required Projection rules to apply. |
Example
const workflow = [
project([['user.name', 'username']]),
];