Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
1.0.4
-
None
-
macOS/Ubuntu
Description
How can I go about doing something like what is defined here: https://docs.mongodb.com/manual/tutorial/expire-data/ using Go MongoDB driver?
I presume I would have to do this at the collection level. It doesn't seem like I can use RunCommand on a collection object.
The specific command I am trying to run would be `db.log_events.createIndex(
{ "createdAt": 1 },
{ expireAfterSeconds: 3600 })`.