MCPcopy Index your code
hub / github.com/simstudioai/sim / validateOperator

Function validateOperator

apps/sim/lib/table/sql.ts:255–261  ·  view source on GitHub ↗

* Validates an operator to ensure it's in the allowed list. * * @param operator - The operator to validate * @throws {TableQueryValidationError} if operator is not allowed

(operator: string)

Source from the content-addressed store, hash-verified

253 * @throws {TableQueryValidationError} if operator is not allowed
254 */
255function validateOperator(operator: string): void {
256 if (!ALLOWED_OPERATORS.has(operator)) {
257 throw new TableQueryValidationError(
258 `Invalid operator "${operator}". Allowed operators: ${Array.from(ALLOWED_OPERATORS).join(', ')}`
259 )
260 }
261}
262
263/**
264 * Validates that a range-operator value matches its column's expected JS type

Callers 1

buildFieldConditionFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected