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

Function entityReferenceQuery

ui/src/queries.js:188–198  ·  view source on GitHub ↗
(location, entity, reference)

Source from the content-addressed store, hash-verified

186}
187
188export function entityReferenceQuery(location, entity, reference) {
189 const context = {
190 [`filter:properties.${reference?.property?.name}`]: entity?.id,
191 'filter:schemata': reference?.schema,
192 };
193 const path =
194 entity?.id && reference?.schema && reference?.property
195 ? 'entities'
196 : undefined;
197 return Query.fromLocation(path, location, context, reference?.property?.name);
198}
199
200export function profileExpandQuery(profileId, properties, limit = Query.LARGE) {
201 const context = { 'filter:property': properties };

Callers 1

mapStateToPropsFunction · 0.90

Calls 1

fromLocationMethod · 0.80

Tested by

no test coverage detected