UNPKG

@env0/dynamo-easy

Version:

DynamoDB client for NodeJS and browser with a fluent api to build requests. We take care of the type mapping between JS and DynamoDB, customizable trough typescript decorators.

22 lines 581 B
import { OPERATOR_TO_ALIAS_MAP } from '../type/condition-operator-to-alias-map.const'; /** * @hidden */ export function operatorForAlias(alias) { let operator; Object.keys(OPERATOR_TO_ALIAS_MAP).forEach(key => { const a = OPERATOR_TO_ALIAS_MAP[key]; if (Array.isArray(a)) { if (a.includes(alias)) { operator = key; } } else { if (a === alias) { operator = key; } } }); return operator; } //# sourceMappingURL=operator-for-alias.function.js.map