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
I scripted a query in my Express app, games.find({ status: { '$in': [ 0, 2 ] } }). That is, find all games whose status is either 0 or 2.
games.find({ status: { '$in': [ 0, 2 ] } })
When Mongoose executed this query, the result set was as expected. The debug output converted the 0 to misencoded garbage, though:
Mongoose: games.find({ status: { '$in': [ '\u001b[33m0\u001b[39m', 2 ] } }) { fields: undefined }
I had been running 4.0.8, but this encouraged me to upgrade to 4.2.10. No change.
The text was updated successfully, but these errors were encountered:
What does your schema look like?
Sorry, something went wrong.
See https://github.com/spamguy/diplomacy/blob/master/server/models/game.js .
Also worth noting: nothing changed when I tried changing the array to read ['0', '2'].
1c3dcff
No branches or pull requests
I scripted a query in my Express app,
games.find({ status: { '$in': [ 0, 2 ] } })
. That is, find all games whose status is either 0 or 2.When Mongoose executed this query, the result set was as expected. The debug output converted the 0 to misencoded garbage, though:
I had been running 4.0.8, but this encouraged me to upgrade to 4.2.10. No change.
The text was updated successfully, but these errors were encountered: