Closed ksyd9821 closed 1 year ago
Hi @vkarpov15 ,
I upgraded to version 7.6.2 which should fix this issue, but the error is still present with the code above.
@ksyd9821 can you please open a new issue and follow the issue template? We added a test case in #13964 and that test case is passing, so you must have a different setup than OP.
Prerequisites
Mongoose version
Node.js version
18.x
MongoDB version
6.x
Operating system
Windows
Operating system version (i.e. 20.04, 11.3, 10)
No response
Issue
It seems that the return type of the
insertMany
function changed with version 7.3.3. The following code runs without any error on v7.3.2 and lowerwhile on versions >=7.3.3 the assignment inside the function generates this error:
The typescript version is 5.2.2.