Constraints
Gibt die Constraints zurück, die bei der Ausführung eines Abfrageausdrucks geprüft werden.
Optionen
| Option | Kurz | Beschreibung |
|---|---|---|
| workspace | -w |
Projektpfad (Standard: das aktuelle Verzeichnis). |
| query | -q |
Abfrageausdruck. |
| envfile | -e |
Liest eine Datei mit Umgebungsvariablen. |
| output | -o |
Ausgabeformat: json, beautiful, light oder yaml. |
| url | -u |
URL des Schemas auf einem Data Gateway, um den Befehl dort auszuführen. |
Beispiel
lambdaorm constraints -o beautiful -q "Orders.filter(p=>p.id==id).include(p=>p.details)"
Ergebnis:
{
"entity": "Orders",
"constraints": [],
"children": [
{
"entity": "Orders.details",
"constraints": []
}
]
}