Class: MergeClause
Defined in: lang-cypher/src/ast/query.ts:102
A MERGE clause that matches a pattern or creates it if not found.
Implements
Constructors
Constructor
new MergeClause(
pattern,actions):MergeClause
Defined in: lang-cypher/src/ast/query.ts:108
Parameters
| Parameter | Type | Description |
|---|---|---|
pattern | PatternElChain | The single path pattern to merge. |
actions | MergeAction[] | - |
Returns
MergeClause
Properties
onCreate
onCreate:
SetItem[] =[]
Defined in: lang-cypher/src/ast/query.ts:104
SET items applied when the pattern is newly created.
onMatch
onMatch:
SetItem[] =[]
Defined in: lang-cypher/src/ast/query.ts:106
SET items applied when the pattern already exists in the graph.
pattern
pattern:
PatternElChain
Defined in: lang-cypher/src/ast/query.ts:110
The single path pattern to merge.
Methods
accept()
accept<
Ret,Arg>(visitor,arg?):Ret
Defined in: lang-cypher/src/ast/query.ts:122
Dispatches this node to the matching method on visitor.
Type Parameters
| Type Parameter |
|---|
Ret |
Arg |
Parameters
| Parameter | Type |
|---|---|
visitor | CypherVisitor<Ret, Arg> |
arg? | Arg |
Returns
Ret