identity() on Neptune on a vertex
Hey all, hope you're doing well.
I'm seeing an interesting behavior in Neptune (and also local gremlin server) where doing identity() on a vertex returns its id, label and the "properties" object. However the object is undefined even though it has some properties such as userId.
Is this a known behavior?
I'm seeing an interesting behavior in Neptune (and also local gremlin server) where doing identity() on a vertex returns its id, label and the "properties" object. However the object is undefined even though it has some properties such as userId.
Is this a known behavior?
Solution
I believe this is expected. As this post pertains to javascript, I seem to recall that
properties was placed there with the idea that there was future potential to include actual properties on elements. There is a long history for why we do not yet do that and you can read about it here: https://lists.apache.org/thread.html/e959e85d4f8b3d46d281f2742a6e574c7d27c54bfc52f802f7c04af3%40%3Cdev.tinkerpop.apache.org%3E That said, we are working on finally implementing this functionality which will arrive in a future version, like 3.7.x: https://github.com/apache/tinkerpop/pull/1843GitHub
Current status:
added finalization strategy DetachStrategy(mode, properties)
added unit tests for DetachedVertex and DetachedEdge
Next:
integration tests
implementations for GLV's
Jira tick...
added finalization strategy DetachStrategy(mode, properties)
added unit tests for DetachedVertex and DetachedEdge
Next:
integration tests
implementations for GLV's
Jira tick...