Sorry, for commenting here, but I couldn’t find a way to DM. first of all thanks for PyMongo its an awesome library. I’m using it extensively, although I’m unable to find a method synonmous to ‘collMod’ used for updated ‘expiresAfterSecond’ on TTL index in pymongo docs.
This seemed like silly question to ask on forum.
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:
as a brand new, highly welcome member, few limitations are available. You start as a Seedling and will be very soon promoted. Once promoted you will be able to send Private Messages and have further advantages:
@michael_hoeller Thank you for the warm welcome. Will definitely checkout the community guidelines. Looking forward to learning with and helping fellow developers.