E207 - Invalid Edge Type for Item
Erroneous Code Example
This error occurs when you try to use an edge type that exists in the schema but is not valid for the specific item type youโre working with. In this example, theCreated
edge exists. However, it goes from User
to Post
, not from Post
to User
.
Therefore, it is not valid for an Out
step from a Post
node.
Solution
In this case, the solution would be to change the traversal to use theIn
step instead of the Out
step.