4

I am using Neo4j as my graph database. Suppose I want to limit the length of User's name field to be less then 10, is there any way to impost such constraint on the database level?

HanXu
  • 5,507
  • 6
  • 52
  • 76

1 Answers1

3

Right now you'd have to do that either on application level, or by registering a transaction-commit hook that checks that property-field for a certain criterium.

See:

Michael Hunger
  • 41,339
  • 3
  • 57
  • 80