updateProp: Update Node and Relationship Properties

Description Usage Arguments Value See Also Examples

View source: R/updateProp.R

Description

For a node or relationship object, update its properties. Existing properties can be overridden and new properties can be added.

Usage

1
updateProp(entity, ...)

Arguments

entity

A node or relationship object.

...

A named list. Property updates in the form key = value.

Value

A node or relationship object.

See Also

deleteProp

Examples

 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)

RNeo4j documentation built on May 29, 2017, 4:01 p.m.