neo4j-contrib / neomodel

An Object Graph Mapper (OGM) for the Neo4j graph database.
https://neomodel.readthedocs.io
MIT License
963 stars 231 forks source link

Support for Node's optional labels #713

Closed mariusconjeaud closed 1 year ago

mariusconjeaud commented 1 year ago

This allows to add an __optional_labels__ array to define extra labels for a Node.

For example :

class MyNodeLabel(StructuredNode): __optional_labels__=["ExtraLabel"]

Then this allows to create nodes with both :MyNodeLabel and :ExtraLabel

mariusconjeaud commented 1 year ago

Test error not introduced by this branch ; it is a problem with Aura, which also now happens on other branches - investigating.