dropConstraint: Uniqueness Constraints

Description Usage Arguments See Also Examples

View source: R/dropConstraint.R

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)

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