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

Method defaultFacet

ui/src/app/Query.js:230–235  ·  view source on GitHub ↗
(field, total = false)

Source from the content-addressed store, hash-verified

228 }
229
230 defaultFacet(field, total = false) {
231 if (!this.hasFacet(field)) {
232 return this.addFacet(getGroupField(field));
233 }
234 return this;
235 }
236
237 clearFacets() {
238 return this.set('facet', []);

Callers 4

datasetsQueryFunction · 0.80
entitySimilarQueryFunction · 0.80
profileSimilarQueryFunction · 0.80

Calls 3

hasFacetMethod · 0.95
addFacetMethod · 0.95
getGroupFieldFunction · 0.90

Tested by

no test coverage detected