I am using lokijs to create a database, db
represents the database of lokijs in the code below:
var users;
db.loadDatabase({},function(){
users=db.getCollection('users');
});
var result=users.find({'city':{'$contains':searCon.username}});
var obj=result.where(function(uu){return uu.username == 'admin123'; });
But I get the following error:
TypeError: result.where is not a function
var obj=result.where(function(uu){return uu.username == 'admin123'; });