Koa-router ignores async/await of Mongoose and return 404 always [closed]
It may be because of mongoose promise being deprecated, after the line where you require mongoose library, eg:
const mongoose = require('mongoose');
You can add one line
mongoose.Promise = global.Promise;
or
mongoose.Promise = require('bluebird');
If you are using bluebird in your project.