pub struct GraphStep {
pub targets: Vec<Spanned<String>>,
pub where_clause: Option<Box<Spanned<Expr>>>,
pub reference: bool,
}Expand description
The selection inside one graph step. SurrealDB allows a full mini-select here (multiple edge tables, WHERE, ORDER, LIMIT, alias, …) — we model what analysis consumes (targets + filter) and bucket the rest.
Fields§
§targets: Vec<Spanned<String>>One or more edge tables: ->likes or ->(likes, follows).
where_clause: Option<Box<Spanned<Expr>>>->(likes WHERE since > $x) / ->likes[WHERE ...].
reference: boolThe step is a record-reference traversal (<~), not a graph-edge
traversal (<-/->/<->). Reference steps follow REFERENCE fields
rather than relation tables, so typing resolves them differently.
Trait Implementations§
impl StructuralPartialEq for GraphStep
Auto Trait Implementations§
impl Freeze for GraphStep
impl RefUnwindSafe for GraphStep
impl Send for GraphStep
impl Sync for GraphStep
impl Unpin for GraphStep
impl UnsafeUnpin for GraphStep
impl UnwindSafe for GraphStep
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more