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

Function entitySimilarQuery

ui/src/queries.js:144–150  ·  view source on GitHub ↗
(location, entityId)

Source from the content-addressed store, hash-verified

142}
143
144export function entitySimilarQuery(location, entityId) {
145 const path = entityId ? `entities/${entityId}/similar` : undefined;
146 return Query.fromLocation(path, location, {}, 'similar').defaultFacet(
147 'collection_id',
148 true
149 );
150}
151
152export function profileSimilarQuery(location, profileId) {
153 const path = profileId ? `profiles/${profileId}/similar` : undefined;

Callers 3

mapStateToPropsFunction · 0.90
mapStateToPropsFunction · 0.90
mapStateToPropsFunction · 0.90

Calls 2

defaultFacetMethod · 0.80
fromLocationMethod · 0.80

Tested by

no test coverage detected