Migration from mongoose 7 to 8.8.0 breaks repository with (responseType ?? responses_1.MongoDBResponse).make is not a function error #15030
Labels
help
This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary
interop issue
issue with interop between Mongoose and another npm module that is not a Mongoose prod dependency
Prerequisites
Mongoose version
8.8.0
Node.js version
20
MongoDB version
7.0.0
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
No response
Issue
Hi! I have being upgrading mongoose version from 5 to 7 and finally 8. I encountered a problem on one of our microservices going from 7.6.3 running node 20 on aws lambda to mongoose 8.8.0 that I haven't been able to understand. Our schema is the following
And the repository that uses that model is the following (erroring on both repository methods):
Yet, when upgrading to 8.8.0, the query fails with the following error:
Haven't been able to solve it, so any recomendations to understand what could be going on would be greatly appreciated!
Thank you very much!
The text was updated successfully, but these errors were encountered: