Skip to main content

marsdb_query/
value.rs

1use marsdb_graph::{Edge, Node, PropertyValue};
2
3use crate::ast::Literal;
4
5#[derive(Debug, Clone)]
6pub enum Value {
7    Node(Node),
8    Edge(Edge),
9    Property(PropertyValue),
10    Literal(Literal),
11    /// A `collect()` result — a query-layer-only concept, not persisted as
12    /// a `PropertyValue` (nothing in the grammar can construct a list
13    /// literal to store as a node/edge property).
14    List(Vec<Value>),
15    Null,
16}