Skip to main content
Guide
Every traversal starts from a source. Choose the narrowest source that matches the data you already know.

Source choices

Source predicates are eligible for index push-down. General .where(...) filters the current stream after its source.

Read active users

Read by indexed property

Use a source predicate when the property has a compatible index:

Read an earlier result

Use NodeRef.var("user") (or the equivalent SDK reference) as the source of a later entry. Named references are transaction-local; they do not create stored variables or routes.

Next steps

Traverse relationships

Follow outgoing and incoming edges.

Filter and order

Narrow and page the current stream.