MCPcopy Create free account
hub / github.com/alephdata/aleph / selectEntityReferences

Function selectEntityReferences

ui/src/selectors.js:328–333  ·  view source on GitHub ↗
(state, entityId)

Source from the content-addressed store, hash-verified

326}
327
328export function selectEntityReferences(state, entityId) {
329 const entity = selectEntity(state, entityId);
330 const query = entityReferencesQuery(entityId);
331 const references = selectEntityExpandResult(state, query);
332 return buildReferences(references, entity?.schema);
333}
334
335export function selectEntityReference(state, entityId, qname) {
336 const references = selectEntityReferences(state, entityId);

Callers 3

mapStateToPropsFunction · 0.90
selectEntityReferenceFunction · 0.85
selectEntityViewFunction · 0.85

Calls 4

entityReferencesQueryFunction · 0.90
selectEntityFunction · 0.85
selectEntityExpandResultFunction · 0.85
buildReferencesFunction · 0.85

Tested by

no test coverage detected