Skip to main content

Invalid Step

Erroneous Code Example

This error occurs when you try to use a step that is not valid in the current context. In this example, the OutE<Knows> step results in edges, but the Out step can only be used on nodes.

Solution

Use valid step types in your traversals.