With this structure, how should the mongose query statement be written?

clipboard.png

requirements, filter the time range of the data and describe the picture

  meta: {
    createAt: {
      type: Date,
      dafault: Date.now()
    },
    updateAt: {
      type: Date,
      dafault: Date.now()
    }
  }
Mar.30,2021

//createAt2018-07-25
yourModel.findOne(
    {"meta.createAt":{$gte:new Date("2019-07-25"),$lt:new Date("2019-07-26")}}
    ,callback
);
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-1b347dd-2b696.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-1b347dd-2b696.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?