-
Notifications
You must be signed in to change notification settings - Fork 229
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
[BUG] After first_or_none of class FindMany, limit_number == 1 remains #1116
Comments
Hi @eac0de, this is the expected behavior for this method. If there are 3 documents, it shall return the first one and limit the response to that single document that matches some search criteria. |
Hi! There is nothing written there about changing the object FindMany and when it is reused, bugs are created.This is a very inconvenient and non-obvious solution |
Apologies for misreading your example. |
Hi again @eac0de, good find. I like your proposed fix, would you mind opening a PR for this please? |
Hi, again) |
Describe the bug and reproduce and expected behavior
After first_or_none of class FindMany, limit_number == 1 remains.
So
It's very unobvious!
Solution
The text was updated successfully, but these errors were encountered: