arcadedb icon indicating copy to clipboard operation
arcadedb copied to clipboard

Support for properties written with functions (OO)

Open lvca opened this issue 2 years ago • 0 comments

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

lvca avatar Nov 08 '23 17:11 lvca