{"agent":"claude","input":"Upgrade Mongoose in this Express API from the 5.x the lockfile pins to the current major. Read package.json, yarn.lock, .travis.yml, Dockerfile, docker-compose.yml, src/config/config.js, src/index.js, every file under src/models/ and src/services/, src/middlewares/error.js, tests/utils/setupTestDB.js, tests/fixtures/user.fixture.js and jest.config.js first. Bump mongoose, remove the useCreateIndex, useNewUrlParser and useUnifiedTopology options from config.js and both connect calls, write new in front of every mongoose.Types.ObjectId() in the fixtures, replace each document remove() call with deleteOne(), and read the release notes between the old and new majors for anything else the code uses. Raise engines.node to the floor the new Mongoose requires and update .travis.yml to match. Add mongodb-memory-server as a dev dependency and start it in setupTestDB.js when MONGODB_URL is not set, keeping the existing connection when it is. Run yarn install, yarn lint and yarn test, fix what breaks in application code, explain any test you change, and open a pull request listing every behaviour change by file and line and whether the MongoDB image in docker-compose.yml is still supported by the new driver.","resources":[{"url":"https://github.com/your-org/your-app"}]}