EdgeQL Tutorial

Constraints

Subtopics

Sometimes it makes sense for a constraint to involve a combination of properties instead of any single one of them separately. This can be addressed by adding a constraint to the type itself. For example, consider this Service type, which has a limitation on how good, fast and cheap it can be:

Input
Run
Output
Press the 'Run' button to evaluate the input

Let's try creating some Service objects:

Input
Run
Output
Press the 'Run' button to evaluate the input
Input
Run
Output
Press the 'Run' button to evaluate the input