-
Notifications
You must be signed in to change notification settings - Fork 32
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
Doesn't work with the following pipeline and dataset #21
Comments
I have encountered the same issue. It looks like according to my tests that it only runs the first match and then ignores the following match and group in this query:
|
@kluch in your case I think it should work if you wrap your pipeline in square brackets. |
@ovidb Thanks for that! I was having the same problem and missed that small detail also (my pipeline was not actually wrapped in an array, but a series of comma-separated object literals -- I just forgot to wrap them in an array). This is a very easy mistake to make, since it will "fail" silently, since the comma-separated objects after the first one are just extra arguments to the function that will get ignored. |
In Meteor:
yields
empty square brackets []
no data
In Mongo
yields:
Sample Collection (1 document):
The text was updated successfully, but these errors were encountered: