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

Function collectionXrefFacetsQuery

ui/src/queries.js:116–125  ·  view source on GitHub ↗
(location, collectionId)

Source from the content-addressed store, hash-verified

114}
115
116export function collectionXrefFacetsQuery(location, collectionId) {
117 const path = collectionId ? `collections/${collectionId}/xref` : undefined;
118 let query = Query.fromLocation(path, location, {}, 'xref');
119 query = query.defaultFacet('match_collection_id', true);
120 query = query.defaultFacet('countries', false);
121 query = query.defaultFacet('schema', false);
122 // Show no internal matches:
123 // query = query.set('exclude:match_collection_id', collectionId);
124 return query;
125}
126
127export function folderDocumentsQuery(location, documentId, queryText) {
128 // when a query is defined, we switch to recursive folder search - otherwise

Callers 3

mapStateToPropsFunction · 0.90
mapStateToPropsFunction · 0.90
mapStateToPropsFunction · 0.90

Calls 2

fromLocationMethod · 0.80
defaultFacetMethod · 0.80

Tested by

no test coverage detected