Interface TypeRelationshipCaching

Caches relationships between types.

interface TypeRelationshipCaching {
    getRelationshipBidirectional<T extends TypeEdge>(
        from: Type,
        to: Type,
        $relation: T["$relation"],
    ): undefined | T;
    getRelationshipUnidirectional<T extends TypeEdge>(
        from: Type,
        to: Type,
        $relation: T["$relation"],
    ): undefined | T;
    setOrUpdateBidirectionalRelationship<T extends TypeEdge>(
        edgeToCache: T,
        edgeCaching: EdgeCachingInformation,
    ): undefined | T;
    setOrUpdateUnidirectionalRelationship<T extends TypeEdge>(
        edgeToCache: T,
        edgeCaching: EdgeCachingInformation,
    ): undefined | T;
}

Implemented by

Methods