Mongodb – findOne() returning all values instead of one
I am working on an endpoint with nodejs/express and mongoose. The endpoint should return only the found ID like this: { "id": 3000, "group": 3, "title": "", "start_time": "2023-07-31T11:00:00.000Z", "end_time": "2023-07-31T20:00:00.000Z", "category": "green" } However, when I tested (localhost:3000/api/one/3000) it…