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

Method getFacetType

ui/src/app/Query.js:218–224  ·  view source on GitHub ↗
(field)

Source from the content-addressed store, hash-verified

216 }
217
218 getFacetType(field) {
219 const cleanedField = field
220 .replace('gte:', '')
221 .replace('lte:', '')
222 .replace('eq:', '');
223 return this.getString(`facet_type:${cleanedField}`);
224 }
225
226 hasFacet(field) {
227 return this.getList('facet').indexOf(field) !== -1;

Callers 1

getTagsListMethod · 0.80

Calls 1

getStringMethod · 0.95

Tested by

no test coverage detected