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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bd75c5-2fdb8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bd75c5-2fdb8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?