Answers for "mongodb date sort"

2

mongodb date sort

db.products.find().sort({"created_at": 1}) --- 1 for asc and -1 for desc
Posted by: Guest on July-01-2021

Browse Popular Code Answers by Language