I am trying insert a document into a Mongo database and have it automatically expire itself after a predetermine time. So far, my document get inserted but always get deleted fr
For Pymongo 3 this is the updated Syntax.
mongo_collection.create_index("date", expireAfterSeconds=3*60)