Description
There is currently no way to traverse from a Property to its Element in Gremlin. Add an element() operator (and ElementStep) that will accomplish this.
// Vertex -> VertexProperty -> Vertex g.V(1).properties().limit(1).element() => v[1] // Edge -> Property -> Edge g.E(2).properties().limit(1).element() => e[2] // Vertex -> VertexProperty -> Property -> VertexProperty -> Vertex g.V(1).properties().properties().limit(1).element().element() => v[1]
Example use case for this would be service calls that return properties (e.g. full-text search), which could then be traversed to their owning element.
Attachments
Issue Links
- relates to
-
TINKERPOP-2718 Add OLAP support for ElementStep
- Open