Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
sort = _.mapKeys(sort, (value, fieldName) => Transform.transformKey(className, fieldName, schema));
keys = _.reduce(keys, (memo, key) => {
fieldNames = fieldNames.map(fieldName => Transform.transformKey(className, fieldName, schema));
keys = _.reduce(keys, (memo, key) => {
memo[Transform.transformKey(className, key, schema)] = 1;
return memo;
}, {});