Skip to content

Support for properties written with functions (OO) #1312

@lvca

Description

@lvca

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions