TTL indexes expire documents after the specified number of seconds has passed since the indexed field value; i.e. the expiration threshold is the indexed field value plus the specified number of seconds.
Field must be a SchemaDate/BsonDate. You must update the time using collMod.
TTL indexes expire documents after the specified number of seconds has passed since the indexed field value; i.e. the expiration threshold is the indexed field value plus the specified number of seconds. Field must be a SchemaDate/BsonDate. You must update the time using collMod.