Constraints
Returns the constraints that are checked when a query expression is executed.
Options
| Option | Short | Description |
|---|---|---|
| workspace | -w |
Project path (default: the current directory). |
| query | -q |
Query expression. |
| envfile | -e |
Reads a file of environment variables. |
| output | -o |
Output format: json, beautiful, light or yaml. |
| url | -u |
URL of the schema on a Data Gateway, to run the command there. |
Example
lambdaorm constraints -o beautiful -q "Orders.filter(p=>p.id==id).include(p=>p.details)"
Result:
{
"entity": "Orders",
"constraints": [],
"children": [
{
"entity": "Orders.details",
"constraints": []
}
]
}