Class: NodePattern
Defined in: lang-cypher/src/ast/pattern.ts:29
A node pattern (variable:Label {props}).
Implements
Constructors
Constructor
new NodePattern(
variable,labels?,props?):NodePattern
Defined in: lang-cypher/src/ast/pattern.ts:30
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
variable | CypherIdentifier | undefined | Optional node variable; null if the node is anonymous. |
labels | CypherIdentifier[] | [] | Required node labels; empty if unconstrained. |
props | ASTMapLiteral | ASTIdentifier | null | Property constraints as a map literal or parameter reference; null if none. |
Returns
NodePattern
Properties
labels
labels:
CypherIdentifier[] =[]
Defined in: lang-cypher/src/ast/pattern.ts:34
Required node labels; empty if unconstrained.
props
props:
ASTMapLiteral|ASTIdentifier=null
Defined in: lang-cypher/src/ast/pattern.ts:36
Property constraints as a map literal or parameter reference; null if none.
variable
variable:
CypherIdentifier
Defined in: lang-cypher/src/ast/pattern.ts:32
Optional node variable; null if the node is anonymous.
Methods
accept()
accept<
Ret,Arg>(visitor,arg?):Ret
Defined in: lang-cypher/src/ast/pattern.ts:39
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