Does the mongodb csharp driver support the modification of the expiration time for an existing TTL index? I found something about using the collMod command, not sure how to perform it with the mongodb c# driver. Can somebody please help me with a code sample about how to do it with the c# driver?
The .NET/C# driver provides helper methods for creating, dropping, and listing indexes, but not for modifying indexes. You can use the RunCommand to execute the
collMod command to update TTL indexes using the .NET/C# driver.
Thanks for the reply, I got it working with the RunCommand. Before calling RunCommand I had to manually check if the TTL index was existing.
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.