clojurewerkz.neocons.rest.nodes
add-to-index
(add-to-index connection node idx key value)
(add-to-index connection node idx key value unique?)
Adds the given node to the index
all-connected-out
(all-connected-out connection id & {:keys [types]})
Returns all nodes given node has outgoing (outbound) relationships with
all-indexes
(all-indexes connection)
connected-out?
(connected-out? connection id other-id & {:keys [types]})
Returns true if given node has outgoing (outbound) relationships with the other node
create
(create connection)
(create connection data)
(create connection data indexes)
Creates and returns a node with given properties. 0-arity creates a node without properties.
create-batch
(create-batch connection xs)
Does an efficient batch insert of multiple nodes. Use it if you need to insert tens of hundreds of thousands
of nodes.
This function returns a lazy sequence of results, so you may need to force it using clojure.core/doall
create-index
(create-index connection s)
(create-index connection s configuration)
Creates a new node index. Indexes are used for fast lookups by a property or full text search query.
create-unique-in-index
(create-unique-in-index connection idx k v data)
Atomically creates and returns a node with the given properties and adds it to an index while ensuring key uniqueness
in that index. This is the same as first creating a node using the `clojurewerkz.neocons.rest.nodes/create` function
and indexing it with the 4-arity of `clojurewerkz.neocons.rest.nodes/add-to-index` but performed atomically and requires
only a single request.
For more information, see http://docs.neo4j.org/chunked/milestone/rest-api-unique-indexes.html section (19.8.1)
delete
multimethod
Deletes a node. The node must have no relationships
delete-from-index
(delete-from-index connection node idx)
(delete-from-index connection node idx key)
(delete-from-index connection node idx key value)
Deletes the given node from index
delete-index
(delete-index connection s)
delete-many
(delete-many connection xs)
delete-properties
(delete-properties connection id)
destroy
multimethod
Deletes a node and all of its relationships
destroy-many
(destroy-many connection xs)
Destroys multiple nodes and all of their relationships
fetch-from
(fetch-from connection uri)
Fetches a node from given URI. Exactly like clojurewerkz.neocons.rest.nodes/get but takes a URI instead of an id.
find
(find connection key value)
(find connection idx key value)
Finds nodes using the index
find-one
(find-one connection idx key value)
Finds a single node using the index
get-many
(get-many connection coll)
Fetches multiple nodes by id.
This is a non-standard operation that requires Cypher support as well as support for that very feature
by Cypher itself (Neo4j Server versions 1.6.3 and later).
get-properties
(get-properties connection id)
multi-get
deprecated
(multi-get connection coll)
Fetches multiple nodes by id. Deprecated, please use get-many instead.
query
(query connection query)
(query connection idx query)
Finds nodes using full text search query
set-property
multimethod
Sets a single property on the given node
traverse
(traverse connection id & {:keys [order relationships uniqueness prune-evaluator return-filter max-depth], :or {order "breadth_first", uniqueness "node_global", prune-evaluator {:language "builtin", :name "none"}, return-filter {:language "builtin", :name "all"}}})
update
multimethod
Updated a node's data (properties)