I am a novice to taffydb, faced following issue when trying to querying the db. My db has a column named TYPE. I tried to get all record where TYPE equals to "Yes".
This line give me the correct results:
var records = database({ "TYPE": { "===": "Yes" } });
But if I tried to pass these values as parameters no records found.
eg.
var column= "TYPE";
var operator = "===";
var value = "Yes" ;
var records = database({ column: { operator: value } });
Simply I need to pass these values as method parameters not in the hard-coded way. What should be the correct way to get this done?
You'll need to treat the object like an array in order to get it to look at the appropriate data
http://jsfiddle.net/Darksbane/kjCtY/