We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Reproduction steps:
call myCollection.ensureIndex({id:1}) before calling load(). after, try (inside load callback function):
myCollection.find({ id:"1" });
Use the same property you used for indexing in your find() query, in this case i used 'id', it will return an empty array.
As a temporary solution, I surrounded all my ensureIndex() calls inside the load() callback of each collection, like so:
item.load(function(err){ item.ensureIndex({ id: 1 }); });
The text was updated successfully, but these errors were encountered:
Thanks for the bug report. We'll add it to the list of fixes for this version. 👍
Sorry, something went wrong.
Any chance you could check if this was resolved by the 1.3.1 update as well? I think it has been...
Checked, sorry, not fixed
Added test to ensure #27 is fixed
e5a8452
Test build for bug fix #27
c02a94c
544f491
All fixed in version 1.3.3
No branches or pull requests
Reproduction steps:
call myCollection.ensureIndex({id:1}) before calling load().
after, try (inside load callback function):
Use the same property you used for indexing in your find() query, in this case i used 'id',
it will return an empty array.
As a temporary solution, I surrounded all my ensureIndex() calls inside the load() callback of each collection, like so:
The text was updated successfully, but these errors were encountered: