Create TTL Index for one year

53 views
Skip to first unread message

Muni kumar

unread,
Mar 2, 2020, 2:13:19 AM3/2/20
to mongod...@googlegroups.com
how to create the TTL index for One year?

Collection documents:
{
"_id": objectId("5635326ssf25665277878"),
"period": ISODate("2019-09-18T03:58:54.000Z"),
"Name": "Harshi",
}

Thanks &Regards,
Muni


Reply all
Reply to author
Forward
0 new messages