I define an enum class that implements Neo4j\'s RelationshipType:
RelationshipType
enum class MyRelationshipType : RelationshipType { // ... }
The example above is working with an interface having a property name instead of a function name().
name
name()
interface Name { val name: String; } enum class Color : Name { Blue }