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
querying against ObjectIds with the $lt and $gt operators #2277
Comments
@vkarpov15 , I think this may also be a problem in the underlying mongo-native-driver, as I tried to do something like:
|
What are you doing to get
It should work with a string as well. |
this doesn't work for me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assuming a Schema with a normal
_id
property, I want to query with a$gt
operator. Equivalent MongoDB query:But, on the mongoose side, when using an object with the ObjectId type, it throws:
As does a simple String:
I've even tried something crazy like:
The text was updated successfully, but these errors were encountered: