cymple.builder.NodeAfterMerge

class cymple.builder.NodeAfterMerge(query)

Bases: Query

A class for representing a “NODE AFTER MERGE” clause.

__init__(query)

Initialize the query object.

Methods

__init__(query)

Initialize the query object.

cypher(cypher_query_str)

Concatenate a cypher query string

get()

Get the final query string .

node([labels, ref_name, properties])

Concatenate a graph Node, which may be filtered using any label/s and/or property/properties.

cypher(cypher_query_str)

Concatenate a cypher query string

get()

Get the final query string .

node(labels: List[str] | str | None = None, ref_name: str | None = None, properties: dict | None = None, **kwargs)

Concatenate a graph Node, which may be filtered using any label/s and/or property/properties.

Parameters:
  • labels (Union[List[str], str]) – The neo4j label (or list of labels) for that node, defaults to None

  • ref_name (str) – A reference name to be used later in the rest of the query, defaults to None

  • properties (dict) – A dict representing the set of properties by which the nodes are filtered, defaults to None

  • **kwargs

    kwargs

:type **kwargs

Returns:

A Query object with a query that contains the new clause.

Return type:

NodeAfterMergeAvailable