0
How to display database data last in first out (LIFO)
I need upload data comes in firstly, I am using expreee server, mongodb database and reactjs
2 odpowiedzi
0
try this if it works.
it sorts and returns data in descending order.
Model.findMany({}).sort({ $natural: -1 });
0
Thank you so much dear. This is executed.