You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeDB has regex for string attributes but no Numeric Attribute Validation (min, max, range)
Current Workaround
An idea should be to
define
max-long-value sub attribute, value long;
measure sub attribute, value long, has max-value;
And to evaluate the statement on the client side.
Or define an max-error entity in TypeDB and define a rule that would raise an error (create a relation between the attribute and error code). But still require the client to pull the error entity.
Proposed Solution
Support Natively the constraint if possible of course. define item owns measure, must-be <= {numeric value};
or define item owns measure, max {numerix value};
or more original, let the modeler define his own rules that raise error in the system as described above.
The text was updated successfully, but these errors were encountered:
Problem to Solve
TypeDB has regex for string attributes but no Numeric Attribute Validation (min, max, range)
Current Workaround
An idea should be to
And to evaluate the statement on the client side.
Or define an max-error entity in TypeDB and define a rule that would raise an error (create a relation between the attribute and error code). But still require the client to pull the error entity.
Proposed Solution
Support Natively the constraint if possible of course.
define item owns measure, must-be <= {numeric value};
or
define item owns measure, max {numerix value};
or more original, let the modeler define his own rules that raise error in the system as described above.
The text was updated successfully, but these errors were encountered: