getUniqueNode: Retrieve Nodes by Label and Property

Description Usage Arguments Value See Also Examples

Description

Retrieve a single node from the graph by specifying its label and unique key = value pair.

Usage

1
getUniqueNode(graph, .label, ...)

Arguments

graph

A graph object.

.label

A character string.

...

A named list. A key = value pair by which the node label is uniquely constrained.

Value

A node object.

See Also

getLabeledNodes

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
graph = startGraph("http://localhost:7474/db/data/")
clear(graph)

createNode(graph, "Person", name = "Alice")
createNode(graph, "Person", name = "Bob")

addConstraint(graph, "Person", "name")

getUniqueNode(graph, "Person", name = "Alice")

## End(Not run)

nicolewhite/RNeo4j documentation built on May 23, 2019, 5:09 p.m.