-
Notifications
You must be signed in to change notification settings - Fork 349
Add support for $sortyCount aggregation command #896
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
base: develop
Are you sure you want to change the base?
Add support for $sortyCount aggregation command #896
Conversation
- draft for support for $sortByCount in the $facet stage
@mdomke this is my first contribution to the project, I wonder if there is a utility that ignores the order for things such as $sort, in this case the order if relevant for the count, but in the case where count is equal, the order becomes irrelevant, I don't know if there is some helper function that considers this. Please do let me know, I am happy to add anything that you see necessary help the feature become supported. |
I have updated and tested but haven't been able to get rid of the assertion error from the diff that states that it is in the incorrect order.
Here is what the return looks like:
Since all of them have a count of 2, technically speaking (or at least up to my knowledge) they could come back from mongodb in any order. I am not sure if there is a way around this. @mdomke How would you approach it? |
Can you maybe rebase your changes on the current development version, so that we actually have a test-pipeline where I could look at the error? The tip of the |
Sure, let me do that. |
6ee00c8
to
0ee3720
Compare
@mdomke I just rebased against the latest |