I'm trying to create a dynamic query, but it just doesn't seem to want to work, even though the query I'm generating works when I put it in statically. No errors are being thrown... Everything works except the dynamic query.
query = {};
for(i in selected) {
if(selected.hasOwnProperty(i)) {
var terms;
Hey,
I'm trying to create a dynamic query, but it just doesn't seem to want to work, even though the query I'm generating works when I put it in statically. No errors are being thrown... Everything works except the dynamic query.
query = {};
for(i in selected) { if(selected.hasOwnProperty(i)) { var terms;
}
result = this.collection.query(query); console.log(result);