Function useRelationDefinitionRole

  • Retrieves the role (subject or object) of the current entity in the relation definition schema list

    Returns "object" | "subject"

    The role (subject or object) of the current entity

    Remarks

    The calling component must be wrapped in a RelationDefinitionListContextProvider

    Throws

    Relation definition list not initialized error if no role found

Generated using TypeDoc