Get latest MongoDB record by field of datetime April 11, 2023 by Tarik Use sort and limit: db.col.find().sort({“datetime”: -1}).limit(1)