You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The question is the following : do we want to add support for this in neomodel ?
Since neomodel defines property types in the Node and Relationship classes, we technically already provide property type constraints on top of Neo4j, but only when you go through neomodel.
So I see a use case where other apps also connect to the Neo4j database (or scripts, ETL, ...), without using the models defined in neomodel => then you cannot control property type. But I am unsure if in those use cases, you would want to give to neomodel the responsibility of creating such constraints on the Neo4j database ?
Happy for feedback here !
Note : this is an Enterprise Edition feature only, but we recently made neomodel Neo4j edition- and version-aware, so we could control creation of said constraints only to those apps running against an EE 5.9+ database
The text was updated successfully, but these errors were encountered:
This is a great feature in general, but also for neomodel since it is always possible that the database data are modified by another actor.
It is very useful that certain constraints are label dependent, which implies a straightforward mapping to classes and their attributes, since neomodel uses a node's labels to instantiate the right type of object.
Since we have neomodel_install_labels we could enable it as a switch there, so that the constraints are created on the first run but optionally and with a possible caveat that this kind of feature is more valuable the closer a data product is to production.
Neo4j (Enterprise Edition) 5.9 introduced property type constraints.
The question is the following : do we want to add support for this in neomodel ?
Since neomodel defines property types in the Node and Relationship classes, we technically already provide property type constraints on top of Neo4j, but only when you go through neomodel.
So I see a use case where other apps also connect to the Neo4j database (or scripts, ETL, ...), without using the models defined in neomodel => then you cannot control property type. But I am unsure if in those use cases, you would want to give to neomodel the responsibility of creating such constraints on the Neo4j database ?
Happy for feedback here !
Note : this is an Enterprise Edition feature only, but we recently made neomodel Neo4j edition- and version-aware, so we could control creation of said constraints only to those apps running against an EE 5.9+ database
The text was updated successfully, but these errors were encountered: