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

29th Sep 2020, 3:16 AM
vardhan js
vardhan js - avatar
2 odpowiedzi
0
try this if it works. it sorts and returns data in descending order. Model.findMany({}).sort({ $natural: -1 });
29th Sep 2020, 4:31 AM
Raj Chhatrala
Raj Chhatrala - avatar
0
Thank you so much dear. This is executed.
29th Sep 2020, 7:07 AM
vardhan js
vardhan js - avatar