Koa1 cooperates with mongoose to return data asynchronously

problem description

version: koa@1.2.2,mongoose@5.4.1

request / test . The doc that is queried and returned has information, but the front end always prompts interface 404 whether to return the data queried in the database asynchronously, but does not know how to write it.

//./models/store.js
let mongoose = require("mongoose");
let Schema = mongoose.Schema;

let storeSchema = new Schema({
    "name": String,
    "detail": String,
})

module.exports = mongoose.model("Store",storeSchema);
Mar.30,2022
Menu