(create-graph-query {:keys [lookups nodes relationships returns]})
Takes a graph representation and creates the nodes and relationship defined and returns any aliases specified in the representation
Takes a graph representation and creates the nodes and relationship defined and returns any aliases specified in the representation
(create-node-query {:keys [ref-id] :or {ref-id (cypher/gen-ref-id)} :as node}
return?)
Returns the bolt query to create a node based on the given node representation
Returns the bolt query to create a node based on the given node representation
(create-relationship-query
{:keys [ref-id from to] :or {ref-id (cypher/gen-ref-id)} :as rel}
return?)
Returns the bolt query to create a one directional relationship based on the given relationship representation
Returns the bolt query to create a one directional relationship based on the given relationship representation
(delete-query {:keys [ref-id] :or {ref-id "e"} :as entity})
Takes a neo4j entity representation and deletes it
Takes a neo4j entity representation and deletes it
(get-graph-query {:keys [nodes relationships returns]})
Takes a graph representation and fetches the nodes and relationship defined and returns any aliases specified in the representation
Takes a graph representation and fetches the nodes and relationship defined and returns any aliases specified in the representation
(index-query operation label prop-keys)
Creates a query to modify index, allowed operations are: CREATE, DROP
Creates a query to modify index, allowed operations are: CREATE, DROP
(lookup-query {:keys [ref-id] :as lookup} return?)
Takes a lookup representation and generates a bolt query
A lookup representation needs the :reference.id to be set and either the :id or :labels and :properties keys
Takes a lookup representation and generates a bolt query A lookup representation needs the :reference.id to be set and either the :id or :labels and :properties keys
(modify-labels-query operation
{:keys [ref-id] :or {ref-id "n"} :as node}
labels)
Takes a operation and a neo4j node representation, along with a collection of labels and either sets or removes them
Allowed operations are: SET, REMOVE
Takes a operation and a neo4j node representation, along with a collection of labels and either sets or removes them Allowed operations are: SET, REMOVE
(modify-properties-query operation
{:keys [ref-id] :or {ref-id "e"} :as entity}
props)
Takes a neo4j entity representation, along with a properties map
Allowed operations are: =, +=
Takes a neo4j entity representation, along with a properties map Allowed operations are: =, +=
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close