const cursor = (await this.studyRepository.execute(
'Study',
'aggregate',
[
{
$facet: {
StudyCount: ...,
SampleTypeCount: ...,
},
},
],
)) as AggregationCursor;
MongoInvalidArgumentError: Argument "options" must not be function
at Collection.aggregate (d:\dev\lien\samplebox-web-backend\node_modules\loopback-connector-mongodb\node_modules\mongodb\lib\collection.js:371:19)
at d:\dev\lien\samplebox-web-backend\node_modules\loopback-connector-mongodb\lib\mongodb.js:602:38
Steps to reproduce
Current Behavior
Expected Behavior
working code in 6.2.0
Link to reproduction sandbox
Additional information
win32 x64 18.15.0Related Issues
See Reporting Issues for more tips on writing good issues