Learn R Programming

RNeo4j (version 1.6.4)

dropConstraint: Uniqueness Constraints

Description

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

Usage

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

Run this code
## 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)

Run the code above in your browser using DataLab