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

Function datasetsQuery

ui/src/queries.js:95–101  ·  view source on GitHub ↗
(location)

Source from the content-addressed store, hash-verified

93}
94
95export function datasetsQuery(location) {
96 const context = { 'exclude:category': 'casefile' };
97 return Query.fromLocation('collections', location, context, 'collections')
98 .defaultFacet('countries')
99 .defaultFacet('category')
100 .defaultSortBy('created_at', 'desc');
101}
102
103export function collectionEntitySetsQuery(location, collectionId) {
104 const context = { 'filter:collection_id': collectionId };

Callers 1

mapStateToPropsFunction · 0.90

Calls 3

defaultSortByMethod · 0.80
defaultFacetMethod · 0.80
fromLocationMethod · 0.80

Tested by

no test coverage detected