isAggregationCategory

Function

Detects whether a given string comes from a search aggregation. Since search aggregation categories are all lowercase, this function checks for the prefix "/categories".

  • isAggregationCategory(value: string) : boolean

Parameters

Parameter Type Default Notes
value Required string

The string to check.

Returns

true if the string is an aggregation category, false otherwise.

boolean

Function defined in common/src/core/schemas/internal/categories/isFullyQualifiedCategory.ts:30