Hello everyone,
I’ve met a problem, can someone help me to fix this? So there is a function:
Looks like it works good, but there is an error during tests:
So there are problem with sorting as i understand, but i don’t know how to fix… Thinking around that i need to add smth like this:
{
‘$sort’: {
‘date’: -1
}
}
Thanks a lot for help!