You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 3.x Mongo driver returns a cursor from db.collection.aggregate() and therefore allows further chaining, but the 2.x driver does not, which is why that check exists. One potential fix that would work with both versions - special-case aggregations to pass a comment/hint in the options when calling .aggregate().
The text was updated successfully, but these errors were encountered:
A query like this:
Results in an error message "Cursor methods can't run after collection method $aggregate" coming from:
sharedb-mongo/index.js
Lines 1027 to 1031 in f746c0f
The 3.x Mongo driver returns a cursor from
db.collection.aggregate()
and therefore allows further chaining, but the 2.x driver does not, which is why that check exists. One potential fix that would work with both versions - special-case aggregations to pass a comment/hint in the options when calling.aggregate()
.The text was updated successfully, but these errors were encountered: