{"agent":"claude","input":"This app fails at startup with \"MongoParseError: options usecreateindex, usefindandmodify are not supported\" (the list of options may differ). Read package.json and the lockfile and report the declared mongoose range, the locked version, and the version the range resolves to today. Install that version in a scratch copy and run the connection code against an address where no database listens, with a short server selection timeout, and record every error in the order it appears, including errors thrown before connect is called, such as mongoose.set() with an option that no longer exists. Find every place that passes options to mongoose.connect, mongoose.createConnection or mongoose.set. Remove useNewUrlParser, useUnifiedTopology, useCreateIndex and useFindAndModify; rename options the driver renamed (poolSize to maxPoolSize) and report any others it rejects. Make sure the promise returned by connect is awaited or has a catch that logs the error and exits non-zero. Check the rest of the Mongoose usage against the migration guides for each major version you cross and list what else must change: callbacks passed to queries or save, remove(), count(), update(), strictQuery. Remove @types/mongoose if the installed mongoose ships its own types, and run the TypeScript build. Compare the Node versions in the Dockerfile, compose file and CI with the engines field of the mongoose version you installed. Either bring them in line or cap the mongoose range, and say which you chose and why. Update the lockfile. Open a pull request with the errors before, the output after, and the list of remaining risks you could not test without a database.","resources":[{"url":"https://github.com/your-org/your-app"}]}