Liking cljdoc? Tell your friends :D

neo4clj.query-builder


create-graph-queryclj

(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
sourceraw docstring

create-index-queryclj

(create-index-query alias label prop-keys)

Creates a query to create a aliased index.

Creates a query to create a aliased index.
sourceraw docstring

create-node-queryclj

(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
sourceraw docstring

create-rel-queryclj

(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
sourceraw docstring

delete-nodeclj

(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
sourceraw docstring

delete-relclj

(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
sourceraw docstring

drop-index-queryclj

(drop-index-query alias)

Creates a query to drop a aliased index.

Creates a query to drop a aliased index.
sourceraw docstring

ensure-rel-nodes-have-ref-idclj

(ensure-rel-nodes-have-ref-id rel)
source

get-graph-queryclj

(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
sourceraw docstring

lookupclj

(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
sourceraw docstring

lookup-graph-queryclj

(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.
sourceraw docstring

lookup-nodeclj

(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
sourceraw docstring

lookup-relclj

(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
sourceraw docstring

modify-labels-queryclj

(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
sourceraw docstring

modify-properties-queryclj

(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: =, +=
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close