const last = await Book.findOne({}).sort({createdAt: -1}).exec()

把顺序倒过来,第一条就是最后一条

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2022-01-19
  • 2021-08-12
  • 2022-01-12
猜你喜欢
  • 2021-08-31
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案