UNPKG

@nerdware/ddb-single-table

Version:

A schema-based DynamoDB modeling tool, high-level API, and type-generator built to supercharge single-table designs!⚡

20 lines (19 loc) 606 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isValidWhereQueryOperator = void 0; /** * Type-guard function for `WhereQueryOperator`. * * @param str The string to check. * @returns A boolean indicating whether the provided `str` is a valid `WhereQueryOperator`. */ const isValidWhereQueryOperator = (str) => { return (str === "eq" || str === "lt" || str === "lte" || str === "gt" || str === "gte" || str === "between" || str === "beginsWith"); }; exports.isValidWhereQueryOperator = isValidWhereQueryOperator;