Shane
(Shane Harvey)
3
Happy to help. In the future feel free to create a new forum post for this type of question. You can run the collMod command (or any other MongoDB command) with the Database.command() method:
>>> client.db.command('collMod', 'collection_name',
index={'name': 'index_name', 'expireAfterSeconds': 3600})
2 Likes