Mongoose populate doesn't seem to work. I've been confused for two days.

problem description

mongoose populate doesn"t seem to work. Confusingly, I use it in another part of the project, and it"s normal

.

the environmental background of the problems and what methods you have tried

mongodb: 4.0.1
mongoose: 5.2.9

related codes


router.get("/test", async (ctx, next) => {
  const result = await DinnerModel.find().populate({
    path: "foods"
  })
  ctx.result = {
    code: 200,
    data: {
      list: result,
      msg: "success"
    }
  }
  await next()
})

what result do you expect? What is the error message actually seen?

What is the cause of

?

May.15,2021

const result = await DinnerModel.find().populate({
    path: "foods"  // =>  path: "content" 
})
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-1b30e5f-2bd33.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-1b30e5f-2bd33.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?