Delete Node and Relationship Properties

Share:

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## 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)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.