In LokiJS, I try a very simple query (which I assume as AND):
var dbRes = recsCol.find({'format':format, 'cardId':-1});
after pasting some data with
recsCol.insert({format:format, cardId:id, recCardId:key, amount:item[key]});
which does not contain cardId of -1.
The query still yields results. Is this expected behavior? If so, how can I make the fields exactly so that I don't get the result in this case?
source share