MCPcopy Create free account
hub / github.com/axe-api/axe-api / valideteQueryFeature

Function valideteQueryFeature

packages/axe-api/src/Services/LimitService.ts:165–178  ·  view source on GitHub ↗
(
  model: IModelService,
  feature: QueryFeature,
  key: string | null = null,
  errorDescription?: string,
)

Source from the content-addressed store, hash-verified

163};
164
165export const valideteQueryFeature = (
166 model: IModelService,
167 feature: QueryFeature,
168 key: string | null = null,
169 errorDescription?: string,
170) => {
171 const errorDetail = errorDescription ? ` (${errorDescription})` : "";
172
173 if (isQueryFeatureEnabled(model, feature, key) === false) {
174 throw new ApiError(
175 `[ERR-1] Unsupported query feature${errorDetail}: ${feature.toString()} [${key}]`,
176 );
177 }
178};

Callers 6

addSoftDeleteQueryFunction · 0.90
getRelatedDataFunction · 0.90
applyFieldsMethod · 0.90
applySortingMethod · 0.90
parseSectionsMethod · 0.90
parseConditionObjectMethod · 0.90

Calls 1

isQueryFeatureEnabledFunction · 0.85

Tested by

no test coverage detected