Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-08-2020 06:40 PM
Is there a way to constrain the the types of values associated to each node (or edge) attribute?
For example enforcing the fact that attribute 1 must be a string and attribute 2 must be an array, etc.:
(n: Vertex {foo: String!, bar: Array!})
11-09-2020 01:57 PM
At this time the out of the box constraint criteria do not allow you to specify that the property be a int/date/string etc.
11-12-2020 12:20 PM
That's unfortunate. Thank you for your fast reply!
11-16-2020 08:40 AM
I wonder if you can use Triggers to catch a value that has the wrong type during creation? (Or maybe force the type to the desired restriction.)
I'm a newbie, so I haven't explored Triggers that much yet.
All the sessions of the conference are now available online