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

get-graph-queryclj

(get-graph-query {:keys [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

get-return-ref-idsclj

(get-return-ref-ids returns)

Takes a list or vector of entity representatios or ref-ids and returns a list of ref-ids

Takes a list or vector of entity representatios or ref-ids and
returns a list of ref-ids
sourceraw docstring

index-queryclj

(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
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 :reference.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 :reference.id to be set and
either the :id or :labels and :props keys
sourceraw docstring

lookup-graph-queryclj

(lookup-graph-query rels)
source

lookup-nodeclj

(lookup-node node 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-non-referred-nodeclj

(lookup-non-referred-node ref-id node)
source

lookup-relclj

(lookup-rel rel return?)

Takes a relation lookup representation and generates a bolt query

A lookup representation needs the :reference-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 :reference-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

node-referenceclj

(node-reference known-ref-ids {:keys [ref-id] :as node})
source

non-existing-rel-queryclj

(non-existing-rel-query rel)
(non-existing-rel-query {:keys [from to] :as rel} known-ref-ids)

Returns the bolt query where part to test that the given relationship doesn't exists

Returns the bolt query where part to test that the given relationship
doesn't exists
sourceraw docstring

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

× close