André
André

Reputation: 12737

How do I disable automatic class creation in OrientDB?

How do I disable automatic class creation in OrientDB? I mean, suppose I create an edge like this:

sourceVertex.addEdge("PointsTo", targetVertex);

OrientDB will create a class PointsTo if it not already exists. Is it possible to configure OrientDB to throw an exception when a non-existent class is given?

Upvotes: 0

Views: 197

Answers (1)

Lvca
Lvca

Reputation: 9060

Execute this SQL command against OrientDB database:

alter database custom useClassForEdgeLabel=false

For more information look at OrientDB Documentation.

Upvotes: 1

Related Questions