mongodb update to 4.0
mongodb update to 4.0 I'm upgrading from mongodb 3.6 to mongodb 4.0 and have problem with aggregates (it seems) . mongodb 3.6 mongodb 4.0 I've got this error: TypeError: Cannot read property 'n' of undefinedn at result.toArray (/eliot-local-git/node_modules/mongodb/lib/operations/collection_ops.js:237:46)n at result (/eliot-local-git/node_modules/mongodb/lib/utils.js:414:17)n at executeCallback (/eliot-local-git/node_modules/mongodb/lib/utils.js:406:9)n at handleCallback (/eliot-local-git/node_modules/mongodb/lib/utils.js:128:55)n at cursor.close (/eliot-local-git/node_modules/mongodb/lib/operations/cursor_ops.js:218:62)n at handleCallback (/eliot-local-git/node_modules/mongodb/lib/utils.js:128:55)n at completeClose (/eliot-local-git/node_modules/mongodb/lib/cursor.js:887:14)n at _endSession (/eliot-local-git/node_modules/mongodb/lib/cursor.js:898:37)n at AggregationCursor.Cursor._endSession (/eliot-local-git/nod...