Learn R Programming

RNeo4j (version 1.6.4)

getConstraint: Uniqueness Constraints

Description

Get all uniqueness constraints for a given label or for the entire graph database.

Usage

getConstraint(graph, label = character())

Arguments

graph
A graph object.
label
A character vector.

Value

A data.frame.

Details

Omitting the label argument returns all uniqueness constraints in the graph database.

See Also

addConstraint, dropConstraint

Examples

Run this code
## Not run: 
# graph = startGraph("http://localhost:7474/db/data/")
# clear(graph)
# 
# addConstraint(graph, "Person", "name")
# addConstraint(graph, "City", "name")
# 
# getConstraint(graph, "Person")
# getConstraint(graph)
# ## End(Not run)

Run the code above in your browser using DataLab