Closed hillc5 closed 8 years ago
This is the root of the issue: https://github.com/arvindr21/diskDB/blob/master/lib/util.js#L110.
Repro:
With collection db.users
db.users.save({ username: 'test', password: 'password' });
var user = db.users.find({ username: 'tests', password: 'password' });
// returns the saved record because the passwords match.
Looks like
is returning any records that match either
attribute1
orattribute2
and not only those records that match both. I expect to only get results that match ALL attributes in the query