ElementCollection.findComponentData()
Home > @backstage/core-plugin-api
> ElementCollection
> findComponentData
Finds all elements using the same criteria as selectByComponentData
, but returns the actual component data of each of those elements instead.
Signature:
findComponentData<T>(query: {
key: string;
}): T[];
Parameters
Parameter |
Type |
Description |
---|---|---|
query |
{ key: string; } |
Lookup query. |
T[]