Uniqueness Constraints

Share:

Description

Drop uniqueness constraint(s) for a given label and property key or for the entire graph database.

Usage

1
dropConstraint(graph, label = character(), key = character(), all = FALSE)

Arguments

graph

A graph object.

label

A character string.

key

A character string.

all

A logical constant. If TRUE, drop all constraints in the graph.

See Also

addConstraint, getConstraint

Examples

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

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

dropConstraint(graph, "Person", "name")
getConstraint(graph)

## End(Not run)

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