-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$in operator not working properly #24
Comments
I tried your example code with your data, and two documents were outputted. Perhaps try this code and see what the output is: people.find({
name: { $in: ['Don', 'Bil'] }
}).toArray((error, docs) => {
console.log(error, docs);
}); |
@erikolson186 no still getting one object in the array. Surprisingly $nin operator working fine and I am able to fetch multiple rows. |
I have checked it on both chrome and firefox still same issue. |
@erikolson186 one more thing I am using library from this link <script src="https://unpkg.com/zangodb@latest/dist/zangodb.min.js"></script> |
@waqas-ali I have checked it on chrome Version 63.0.3239.108 (Official Build) (64-bit) |
The $in operator always fetch one record.
I have very simple database structure as shown below
I am trying to fetch all those records which have name field value 'Bill' or 'Don' I am using $in operator but it always return only one row. Below is the code that I am using
and the output of above code is
@erikolson186 can you please help me know to resolve above issue?
The text was updated successfully, but these errors were encountered: