You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mongoose 7.x.x removes support for callbacks, so all calls to Mongoose models and documents need to be refactored to use async instead of callbacks before the REST API can upgrade to use the latest version. Mongoose 6.x.x is currently being maintained, but will only receive security updates after August 2023.
It may be advantageous to combine this refactoring with a change to the services to use a set of generic functions that eliminate most of the redundant code across the services.
Most calls to the Mongoose functions are located in the object services, but changing the service functions to async will require changing the controller functions that call the services (or adding shims, but we might as well bring everything up to the same level)
The text was updated successfully, but these errors were encountered:
Mongoose 7.x.x removes support for callbacks, so all calls to Mongoose models and documents need to be refactored to use
async
instead of callbacks before the REST API can upgrade to use the latest version. Mongoose 6.x.x is currently being maintained, but will only receive security updates after August 2023.It may be advantageous to combine this refactoring with a change to the services to use a set of generic functions that eliminate most of the redundant code across the services.
Most calls to the Mongoose functions are located in the object services, but changing the service functions to
async
will require changing the controller functions that call the services (or adding shims, but we might as well bring everything up to the same level)The text was updated successfully, but these errors were encountered: