redis-orm-node
Version:
`redis-orm` is a lightweight Object-Relational Mapping (ORM) library for Node.js.
14 lines • 515 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.wheresToRedisQuery = void 0;
function wheresToRedisQuery(wheres, schemaProperties) {
let query = [];
for (let key in schemaProperties) {
const properties = wheres.filter(i => i.includes(`@${key}:`));
if (properties.length > 0)
query.push(properties.join(" | "));
}
return query.join(" ");
}
exports.wheresToRedisQuery = wheresToRedisQuery;
//# sourceMappingURL=wheresToRedisQuery.js.map