GraphQuery class
A fluent query builder for fact graphs.
Constructors
- GraphQuery(FactGraph _graph)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
count(
) → int - Execute and count results.
-
depth(
int max) → GraphQuery - Set maximum traversal depth.
-
execute(
) → QueryResult< FactNode> - Execute query and return nodes.
-
exists(
) → bool - Execute and check if any results exist.
-
first(
) → FactNode? - Execute and return first result.
-
from(
String nodeId) → GraphQuery - Start query from a specific node.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
skip(
int count) → GraphQuery - Skip results.
-
sortBy(
String property, {bool descending = false}) → GraphQuery - Sort results.
-
take(
int count) → GraphQuery - Limit results.
-
toString(
) → String -
A string representation of this object.
inherited
-
viaEdgeType(
EdgeType type) → GraphQuery - Filter edges by type.
-
where(
bool predicate(FactNode)) → GraphQuery - Filter by custom predicate.
-
whereHasProperty(
String name) → GraphQuery - Filter nodes by property existence.
-
whereProperty(
String name, dynamic value) → GraphQuery - Filter nodes by property.
-
whereTag(
String tag) → GraphQuery - Filter nodes by tag.
-
whereType(
NodeType type) → GraphQuery - Filter nodes by type.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited