I currently have a series of two vertices in a parent/child relationship, two edges between them that I have no issue with.
The issue happens when I start attempting to add properties to the edge and I get an error message that gives only some help:
{
"requestId": "...",
"code": "InternalFailureException",
"detailedMessage": "null:to([[SelectOneStep(last,child)]])"
}
I can run the same pattern below on Gremlify, but I understand that is 3.5 as opposed to Neptune on 3.4.
Do I need to point back to the edge itself after adding in all the properties or am I supposed to specify to(select('child'))
and then add all the properties while in scope (and then return back to child
)?
Traversal Query:
g.V(13695)
.out("latest_parent_to").as("child")
.in("parent_to")
.addE("role")
.property(single,'name','some_role')
.to(
select("child")
).select("child")
Update: I made a few changes to try the other thought: addE > to(select(...)) > set properties. Different error this time:
{
"requestId": "77ee2b5b-8309-4226-b163-8b253450c721",
"code": "UnsupportedOperationException",
"detailedMessage": "Cardinality specification may not be used with Edge properties."
}
The reason for using the single cardinality is every property stored/returned as a set. This was to prevent accidentally appending when one should update.