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
As I mentioned, I think there are the same problem as in issue #1950, because Query.prototype.sortstill using mquery and wasn't rewrote like Query.prototype.count in this commit.
Head of stack trace:
Error: sort cannot be used with count
at Query._validate (/path/to/project/node_modules/mongoose/node_modules/mquery/lib/mquery.js:2422:11)
at Query.sort (/path/to/project/node_modules/mongoose/node_modules/mquery/lib/mquery.js:1175:8)
at Query.sort (/path/to/project/node_modules/mongoose/lib/query.js:1335:26)
at Object.async.parallel.data (/path/to/project/some/file.coffee:28:7)
The text was updated successfully, but these errors were encountered:
Almost the same problem as in #1950, but now
sort
crashes with "sort cannot be used with count" aftercount
.For example, this code (coffescript) works:
But this one (
sort
moved todata
function in async.parallel and seems like called aftercount
) - don't:As I mentioned, I think there are the same problem as in issue #1950, because
Query.prototype.sort
still using mquery and wasn't rewrote likeQuery.prototype.count
in this commit.Head of stack trace:
The text was updated successfully, but these errors were encountered: