arcadedb
arcadedb copied to clipboard
Support for properties written with functions (OO)
It would be useful to have properties defined with functions, which are bound to types <type>.<functionName> allows “functionName” to be a property on the MyType vertex class).
This means queries can refer to a property that is implemented as a function or has an attribute value, and this also can be polymorphic.
Example:
SELECT FROM Account WHERE friendThatLivesInTheSameCity > 0
With the following definition:
define function Account.friendThatLivesInTheSameCity
\"return me.getVertices(OUT, "Lives").... \"
language js