Liking cljdoc? Tell your friends :D

clojurewerkz.neocons.rest.relationships


add-to-indexclj

(add-to-index connection rel idx key value)
(add-to-index connection rel idx key value unique?)

Adds the given rel to the index

Adds the given rel to the index
sourceraw docstring

all-forclj

(all-for connection node & {:keys [types]})

Returns all relationships for given node

Returns all relationships for given node
sourceraw docstring

all-ids-forclj

(all-ids-for connection node & {:keys [types]})

Returns ids of all relationships for the given node

Returns ids of all relationships for the given node
sourceraw docstring

all-indexesclj

(all-indexes connection)

Returns all relationship indices

Returns all relationship indices
sourceraw docstring

all-outgoing-betweenclj

(all-outgoing-between connection from to rels)

Returns all outgoing (outbound) relationships of given relationship types between two nodes

Returns all outgoing (outbound) relationships of given relationship types between two nodes
sourceraw docstring

all-typesclj

(all-types connection)

Returns all relationship types that exists in the entire database

Returns all relationship types that exists in the entire database
sourceraw docstring

createclj

(create connection from to rel-type)
(create connection from to rel-type data)

Creates a relationship of given type between two nodes.

Creates a relationship of given type between two nodes. 
sourceraw docstring

create-indexclj

(create-index connection s)
(create-index connection s configuration)

Creates a new relationship index. Indexes are used for fast lookups by a property or full text search query.

Creates a new relationship index. Indexes are used for fast lookups by a property or full text search query.
sourceraw docstring

create-manyclj

(create-many connection from xs rel-type)
(create-many connection from xs rel-type data)

Concurrently creates multiple relations of given type between the from node and several provded nodes. All relationships will be of the same type.

This function should be used when number of relationships that need to be created is moderately high (dozens and more), otherwise it would be less efficient than using clojure.core/map over the same sequence of nodes

Concurrently creates multiple relations of given type between the *from* node and several provded nodes.
All relationships will be of the same type.

This function should be used when number of relationships that need to be created is moderately high (dozens and more),
otherwise it would be less efficient than using clojure.core/map over the same sequence of nodes
sourceraw docstring

create-unique-in-indexclj

(create-unique-in-index connection from to rel-type idx k v)
(create-unique-in-index connection from to rel-type idx k v data)

Atomically creates and returns a relationship 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 relationship using the clojurewerkz.neocons.rest.relationships/create function and indexing it with the 4-arity of clojurewerkz.neocons.rest.relationships/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.4)

Atomically creates and returns a relationship 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 relationship using the `clojurewerkz.neocons.rest.relationships/create` function
and indexing it with the 4-arity of `clojurewerkz.neocons.rest.relationships/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.4)
sourceraw docstring

deleteclj

(delete connection rel)

Deletes relationship by id

Deletes relationship by id
sourceraw docstring

delete-from-indexclj

(delete-from-index connection rel idx)
(delete-from-index connection rel idx key)
(delete-from-index connection rel idx key value)

Deletes the given rel from index

Deletes the given rel from index
sourceraw docstring

delete-indexclj

(delete-index connection s)

Deletes a relationship index

Deletes a relationship index
sourceraw docstring

delete-manyclj

(delete-many connection ids)

Deletes multiple relationships by id.

Deletes multiple relationships by id.
sourceraw docstring

delete-propertyclj

(delete-property connection id prop)

Deletes a property from relationship with the given id

Deletes a property from relationship with the given id
sourceraw docstring

ends-with?clj

(ends-with? rel id)

Returns true if provided relationship ends with the node with the provided id, false otherwise

Returns true if provided relationship ends with the node with the provided id,
false otherwise
sourceraw docstring

fetch-fromclj

(fetch-from connection uri)

Fetches a relationships from given URI. Exactly like clojurewerkz.neocons.rest.relationships/get but takes a URI instead of an id.

Fetches a relationships from given URI. Exactly like clojurewerkz.neocons.rest.relationships/get but takes a URI instead of an id.
sourceraw docstring

findclj

(find connection key value)
(find connection idx key value)

Finds relationships using the index

Finds relationships using the index
sourceraw docstring

find-oneclj

(find-one connection idx key value)

Finds a single relationship using the index

Finds a single relationship using the index
sourceraw docstring

first-outgoing-betweenclj

(first-outgoing-between connection from to types)

Returns first outgoing (outbound) relationships of given relationship types between two nodes

Returns first outgoing (outbound) relationships of given relationship types between two nodes
sourceraw docstring

getclj

(get connection id)

Fetches relationship by id

Fetches relationship by id
sourceraw docstring

get-manyclj

(get-many connection coll)

Fetches multiple relationships 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).

Fetches multiple relationships 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).
sourceraw docstring

incoming-forclj

(incoming-for connection node & {:keys [types]})

Returns incoming (inbound) relationships for the given node

Returns incoming (inbound) relationships for the given node
sourceraw docstring

maybe-createclj

(maybe-create connection from to rel-type)
(maybe-create connection from to rel-type data)

Creates a relationship of given type between two nodes, unless it already exists

Creates a relationship of given type between two nodes, unless it already exists
sourceraw docstring

maybe-deleteclj

(maybe-delete connection id)

Deletes relationship by id but only if it exists. Otherwise, does nothing and returns nil

Deletes relationship by id but only if it exists. Otherwise, does nothing and returns nil
sourceraw docstring

maybe-delete-outgoingclj

(maybe-delete-outgoing connection id)
(maybe-delete-outgoing connection from to rels)

Deletes outgoing relationship of given type between two nodes but only if it exists. Otherwise, does nothing and returns nil

Deletes outgoing relationship of given type between two nodes but only if it exists.
Otherwise, does nothing and returns nil
sourceraw docstring

outgoing-forclj

(outgoing-for connection node & {:keys [types]})

Returns all outgoing (outbound) relationships for the given node

Returns all outgoing (outbound) relationships for the given node
sourceraw docstring

outgoing-ids-forclj

(outgoing-ids-for connection node & {:keys [types]})

Returns ids of all outgoing (outbound) relationships for given node.

Returns ids of all outgoing (outbound) relationships for given node.
sourceraw docstring

purge-allclj

(purge-all connection node)

Deletes all relationships for given node. Usually used before deleting the node, because Neo4J won't allow nodes with relationships to be deleted. Nodes are deleted sequentially to avoid node locking problems with Neo4J Server before 1.8

Deletes all relationships for given node. Usually used before deleting the node,
because Neo4J won't allow nodes with relationships to be deleted. Nodes are deleted sequentially
to avoid node locking problems with Neo4J Server before 1.8
sourceraw docstring

purge-outgoingclj

(purge-outgoing connection node)
(purge-outgoing connection node & {:keys [types]})

Deletes all outgoing relationships for given node. Nodes are deleted sequentially to avoid node locking problems with Neo4J Server before 1.8

Deletes all outgoing relationships for given node. Nodes are deleted sequentially
to avoid node locking problems with Neo4J Server before 1.8
sourceraw docstring

queryclj

(query connection query)
(query connection idx query)

Finds relationships using full text search query

Finds relationships using full text search query
sourceraw docstring

replace-outgoingclj

(replace-outgoing connection from xs rel-type)

Deletes outgoing relationships of the node from with given type, then creates new relationships of the same type with xs nodes

Deletes outgoing relationships of the node `from` with given type, then creates
new relationships of the same type with `xs` nodes
sourceraw docstring

starts-with?clj

(starts-with? rel id)

Returns true if provided relationship starts with the node with the provided id, false otherwise

Returns true if provided relationship starts with the node with the provided id,
false otherwise
sourceraw docstring

traverseclj

(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"}}})

Performs relationships traversal

Performs relationships traversal
sourceraw docstring

updateclj

(update connection rel data)

Updates relationship data by id

Updates relationship data by id
sourceraw docstring

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

× close