How to fix date sorting on the server
I’m writing an API for my project and one of its functions is to sort data received from the database. Using everything locally on my laptop and Swagger, everything works as it should, but when I run the same code on the server, I start having problems with the date. Sorting breaks and returns empty lists
MongoDB format exception ‘BookID’ does not match any field or property
I have a mongoDB database called BookStore that has a single collection called Books. The Schema of this collection is ‘BookID’, ‘Title’, and ‘Authors’