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

Function entityExpandQuery

ui/src/queries.js:178–182  ·  view source on GitHub ↗
(entityId, properties, limit = Query.LARGE)

Source from the content-addressed store, hash-verified

176}
177
178export function entityExpandQuery(entityId, properties, limit = Query.LARGE) {
179 const context = { 'filter:property': properties };
180 const path = entityId ? `entities/${entityId}/expand` : undefined;
181 return new Query(path, {}, context, 'expand').limit(limit);
182}
183
184export function entityReferencesQuery(entityId) {
185 return entityExpandQuery(entityId, [], 0);

Callers 2

expandEntityMethod · 0.90
entityReferencesQueryFunction · 0.85

Calls 1

limitMethod · 0.80

Tested by

no test coverage detected