Skip to content
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

Remove limit field from findAndModify commands #1

Open
wants to merge 1 commit into
base: mongo-2.x
Choose a base branch
from

Conversation

alexbevi
Copy link

@alexbevi alexbevi commented Jun 5, 2020

The findAndModify command doesn't accept limit as it is not a valid field. This can result in failures such as:

MONGODB | [77] localhost:27017 | soter_fork_test_dev.findandmodify | FAILED | BSON field 'limit' is an unknown field. (51177) | 0.028634s

This has not been tested thoroughly and is just based on an observation at this point

The [`findAndModify`](https://docs.mongodb.com/manual/reference/command/findAndModify/) command doesn't accept `limit` as it is not a valid field. This can result in failures such as:

> MONGODB | [77] localhost:27017 | soter_fork_test_dev.findandmodify | FAILED | BSON field 'limit' is an unknown field. (51177) | 0.028634s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant