Search code examples
orientdb

OrientDB Edge upsert issues


When I attempt to UPDATE/UPSERT an Edge using the syntax:

update relationship set in = #123, out = #456 upsert where in = #123 and out = #456

The Edge is created, but the Vertex in and out properties aren't populated, meaning the graph isn't traversible (and is just a collection of floating vertices in the browser).

This is in contrast to a basic CREATE command, which works as expected:

create edge relationship from #123 to #456

How can I make the UPDATE/UPSERT version populate the Vertex properties correctly?


Solution

  • UPDATE EDGE doesn't support UPSERT, see issue #4436