Learn R Programming

RNeo4j (version 1.6.4)

deleteProp: Delete Node and Relationship Properties

Description

For a node or relationship object, delete the named properties or delete all properties.

Usage

deleteProp(entity, ..., all = FALSE)

Arguments

entity
A node or relationship object.
...
A character vector. The properties to delete.
all
A logical constant. If TRUE, delete all properties.

Value

A node or relationship object.

See Also

updateProp

Examples

Run this code
## Not run: 
# graph = startGraph("http://localhost:7474/db/data/")
# clear(graph)
# 
# alice = createNode(graph, "Person", name = "Alice", age = 23, status = "Married")
# bob = createNode(graph, "Person", name = "Bob", age = 22, status = "Married")
# charles = createNode(graph, "Person", name = "Charles", age = 25, status = "Unmarried")
# 
# alice = deleteProp(alice, "age")
# bob = deleteProp(bob, c("name", "age"))
# charles = deleteProp(charles, all = TRUE)
# 
# alice
# bob
# charles
# ## End(Not run)

Run the code above in your browser using DataLab