Skip to content

filter #

Classes#

FilterExpr#

FilterOps#

Builds property filter expressions.

This object represents “a property access” plus optional list/aggregate qualifiers (e.g. first, len, sum) and can emit a filter.FilterExpr via comparisons such as ==, <, is_in, etc.

Returned expressions can be combined with &, |, and ~ at the filter.FilterExpr level (where supported).

PropertyFilterOps#

Builds property filter expressions with access to temporal qualifiers.

Exported as: filter.PropertyFilterOps

This extends FilterOps and provides .temporal() to explicitly select temporal property evaluation semantics (where supported by the query context).

Node#

Constructs node filter expressions.

Each method returns either: - a field-specific filter builder, or - a view-restricted filter context, or - a boolean predicate over node state.

NodeIdFilterBuilder#

Filters nodes by their ID value.

Supports numeric and string IDs and produces a FilterExpr that can be used in node queries.

NodeNameFilterBuilder#

Filters nodes by their name.

Comparisons are performed on the node's string name.

NodeTypeFilterBuilder#

Filters nodes by their node type.

The node type corresponds to the optional type assigned at node creation.

Edge#

Entry point for constructing edge filter expressions.

The Edge filter provides: - endpoint filters via src() and dst(), - property and metadata filters, - view restrictions (time windows, snapshots, layers), - and structural predicates over edge state (active/valid/deleted/self-loop).

EdgeEndpoint#

Entry point for filtering an edge endpoint (source or destination).

An EdgeEndpoint is obtained from Edge.src() or Edge.dst() and allows you to filter on endpoint fields (id, name, type) as well as endpoint properties and metadata.

EdgeEndpointIdFilter#

Filters an edge endpoint by its node ID.

This builder produces FilterExpr predicates over the source or destination endpoint of an edge (depending on where it was obtained).

EdgeEndpointNameFilter#

Filters an edge endpoint by its node name.

This builder produces FilterExpr predicates over the source or destination endpoint node name.

EdgeEndpointTypeFilter#

Filters an edge endpoint by its node type.

This builder produces FilterExpr predicates over the source or destination endpoint node type.

ExplodedEdge#

Entry point for constructing exploded edge filter expressions.

An exploded edge represents an edge view where temporal events are treated as individually addressable edge instances (i.e. “event-level” edges), rather than a single aggregated edge across time.

This filter provides: - property and metadata filters, - view restrictions (time windows, snapshots, layers), - and structural predicates over exploded edge state (active/valid/deleted/self-loop).

Graph#

Entry point for constructing graph-level view filters.

The Graph filter restricts when and where the graph is evaluated, independent of node or edge predicates. It defines the temporal scope (windows, snapshots, latest state) and layer scope for subsequent node and edge filters.

All methods are static and return a ViewFilterBuilder, which can then be refined further or combined with node/edge predicates.