(create-graph-query {:keys [lookups nodes rels 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] :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-rel-query {:keys [ref-id from to] :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-node {:keys [ref-id] :or {ref-id "n"} :as node})
Takes a neo4j node representation and deletes it
Takes a neo4j node representation and deletes it
(delete-rel {:keys [ref-id] :or {ref-id "r"} :as rel})
Takes a neo4j relationship representation and deletes it
Takes a neo4j relationship representation and deletes it
(get-graph-query {:keys [nodes rels 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 entity-fn {:keys [ref-id] :as entity} return?)
Takes a lookup representation and generates a bolt query
A lookup representation needs the :ref-id to be set and either the :id or :labels and :props keys
Takes a lookup representation and generates a bolt query A lookup representation needs the :ref-id to be set and either the :id or :labels and :props keys
(lookup-graph-query node-entries rels)
Takes a list of node-entries and relations. Returns a query string to lookup the nodes represented by the given relationships.
Takes a list of node-entries and relations. Returns a query string to lookup the nodes represented by the given relationships.
(lookup-node node-lookup return?)
Takes a node lookup representation and generates a bolt query
A node lookup representation needs the :ref-id to be set and at least one of the keys :id, :labels or :props
Takes a node lookup representation and generates a bolt query A node lookup representation needs the :ref-id to be set and at least one of the keys :id, :labels or :props
(lookup-rel rel return?)
Takes a relation lookup representation and generates a bolt query
A lookup representation needs the :ref-id, :from and :to keys to be set and can take the optional :id, :type and :props keys
Takes a relation lookup representation and generates a bolt query A lookup representation needs the :ref-id, :from and :to keys to be set and can take the optional :id, :type and :props 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