Description Usage Arguments Value See Also Examples
For a node or relationship object, update its properties. Existing properties can be overridden and new properties can be added.
1 | updateProp(entity, ...)
|
entity |
A node or relationship object. |
... |
A named list. Property updates in the form key = value. |
A node or relationship object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
graph = startGraph("http://localhost:7474/db/data/")
clear(graph)
alice = createNode(graph, "Person", name = "Alice")
bob = createNode(graph, "Person", name = "Bob")
alice = updateProp(alice, age = 24, eyes = "green")
newProps = list(age = 25, eyes = "brown")
bob = updateProp(bob, newProps)
alice
bob
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.