cymple.builder.CreateAvailable

class cymple.builder.CreateAvailable(query)

Bases: Node, Union

A class decorator declares a Create is available in the current query.

__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.

union()

Combines the results of two or more queries.

union_all()

Combines the results of two or more queries including duplicates.

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:

NodeAvailable

union()

Combines the results of two or more queries. Duplicates are removed.

Returns:

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

Return type:

UnionAvailable

union_all()

Combines the results of two or more queries including duplicates.

Returns:

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

Return type:

UnionAvailable