@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.
18 lines • 524 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* function to negate a condition
* @example
* ```typescript
* not(attribute('propA').eq('foo'))
* ```
*/
function not(conditionDefinitionFn) {
return (expressionAttributeValues, metadata) => {
const condition = conditionDefinitionFn(expressionAttributeValues, metadata);
condition.statement = `NOT ${condition.statement}`;
return condition;
};
}
exports.not = not;
//# sourceMappingURL=not.function.js.map