schemaRelationships

Provides a property that computes and returns a map of "relationships" for a given class implementing the Persistable interface.

The relationships are represented as a Map where:

  • The key is the name of the relationship as a String.

  • The value is a reference to the property representing the relationship, encapsulated as a KProperty1.

A "relationship" is determined based on a specific set of criteria defined by the isRelationship function. These criteria evaluate properties that are associated with other nodes in a graph model, excluding fields explicitly marked to skip persistence.

The computed relationships are cached for performance optimization to ensure that repeated lookups do not re-evaluate the relationships for the same class.

This property enhances schema introspection, allowing retrieval of relational data connections within classes modeled as entities in a graph database.