pub struct MergeOp {
pub variable: String,
pub labels: Vec<String>,
pub match_properties: Vec<(String, LogicalExpression)>,
pub on_create: Vec<(String, LogicalExpression)>,
pub on_match: Vec<(String, LogicalExpression)>,
pub input: Box<LogicalOperator>,
}Expand description
Merge a pattern (match or create).
MERGE tries to match a pattern in the graph. If found, returns the existing elements (optionally applying ON MATCH SET). If not found, creates the pattern (optionally applying ON CREATE SET).
Fields§
§variable: StringThe node to merge.
labels: Vec<String>Labels to match/create.
match_properties: Vec<(String, LogicalExpression)>Properties that must match (used for both matching and creation).
on_create: Vec<(String, LogicalExpression)>Properties to set on CREATE.
on_match: Vec<(String, LogicalExpression)>Properties to set on MATCH.
input: Box<LogicalOperator>Input operator.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MergeOp
impl RefUnwindSafe for MergeOp
impl Send for MergeOp
impl Sync for MergeOp
impl Unpin for MergeOp
impl UnwindSafe for MergeOp
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