In my mongo database I have field timestamp which holds time of creation in timestamp ie: "timestamp": 1544029233021
I want to create TTL index on this field, but in docs example is done on "createdAt": new Date(),
which is ISODate("2018-12-13T17:00:10.433Z")
Is it possible to in any way to make TTL Index work on timestamp field?
Because this doesnt work:
db.coll.createIndex( { "timestamp": 1 }, { expireAfterSeconds: 3600 } )