The ensureIndex
method is deprecated in the current MongoDB driver and will be removed in a future version. This can cause issues and log warnings during application startup.
I have already updated the code to use the recommended createIndex
method to ensure future compatibility and remove deprecation warnings. I will be submitting a pull request to address this shortly.