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
In order to reproduce, make a collection with documents having integer ids. Then run the following:
\DB::connection('mongodb')->enableQueryLog(); User::query()->chunkById(100, function ($collection) { dd($collection->count()); }); dd(\DB::connection('mongodb')->getQueryLog());
The expected behavior would be dumping the count of first chunk. What actually happens is this query getting dumped:
users.find({"_id":{"$gt":"000000000000000000000000"}},{"sort":{"_id":1},"limit":100,"typeMap":{"root":"array","document":"array"}})
Apparently, no integer is less than '000000000000000000000000' in MongoDb.
A Related PR: #1317 ping @DFurnes Any idea on how to fix this?
The text was updated successfully, but these errors were encountered:
I think the related PR in laravel/framework fixes this as well. Just a need to delete a couple of lines after laravel 5.7 release.
Sorry, something went wrong.
Yep, removing that hack now that this is fixed in Laravel makes sense to me! 👍
Successfully merging a pull request may close this issue.
In order to reproduce, make a collection with documents having integer ids. Then run the following:
The expected behavior would be dumping the count of first chunk.
What actually happens is this query getting dumped:
Apparently, no integer is less than '000000000000000000000000' in MongoDb.
A Related PR: #1317
ping @DFurnes
Any idea on how to fix this?
The text was updated successfully, but these errors were encountered: