If the data has been added before and the id number is 1, I want the id number of the new data to be added to be 2. I want it to increase in order.
I want it to read the id number of the previous data in the mongodb database and increase it accordingly.
How can I do it?
I'm coding with python.