Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}).then(function() {
return map.valuesWithPredicate(Predicates
.and(Predicates.sql('name like A%'), Predicates.greaterThan("age", 30)));
}).then(function(values) {
// Prints all the employees whose name starts with 'A' and age is greater than 30
}).then(function () {
// Create a Predicate
var criteriaQuery = Predicates.and(
Predicates.equal('active', true),
Predicates.between('age', 18, 21)
);
// Get result collections using the the Predicate
return users.valuesWithPredicate(criteriaQuery);
}).then(function (values) {
// Print out the results