I have an Any data type in my Mongo DB schema in a NodeJS application where I add new properties or update that object with an action in my application. It an online exam app and I realize that sometimes when I answer questions very fast (say 4 questions in 1 second), some of the answers do not get added or updated in the Any object. I have debugged and can see all all the requests from the frontend are getting to the NodeJS backend, but some a few requests (1 or 2) doesn’t get processed into the DB.
NOTE: when I answer the question at normal speed (say 2 or 1 question per second) everything works as expected and all requests are processed to DB.
I am using Mongoose with MongoDB community version locally installed on my PC.
Does anyone know what could be wrong?
Can you add your code in the question?