Example: Use an expression to add a constraint
- Drag a Customer entity type onto the workspace, then drag a CreditCard entity type onto the workspace.
- Draw a connection between the two entity types and select the "HasAccount" relationship type.
- Draw a second connection between the two entity types and select the "Payment" relationship type.
- Click this relationship type between the two entity types.
- In the Expression Editor, choose the "amount" property and the Is greater than operator, enter "1" for the value, and click the plus sign at the end of the row.
Note: Notice after running a query that a green check now appears next to the relationship type. This denotes that an expression has been tied to the relationship type in the query.