Skip to main content
Version: Next

useRelatedEntities()

Home > @backstage/plugin-catalog-react > useRelatedEntities

Fetches all entities that appear in the entity's relations, optionally filtered by relation type and kind.

Signature:

function useRelatedEntities(entity: Entity, relationFilter: {
type?: string;
kind?: string;
}): {
entities: Entity[] | undefined;
loading: boolean;
error: Error | undefined;
};

Parameters

Parameter

Type

Description

entity

Entity

relationFilter

{ type?: string; kind?: string; }

**Returns:**

{ entities: Entity[] | undefined; loading: boolean; error: Error | undefined; }