I have a collections of documents in mongodb, with the expireAfterSeconds property set on a date-type index.
expireAfterSeconds
For the sake of argument, the documents are set
If you don't want to rely on mongo demon process for expiring the collection, then better to create an additional createdOn field on collection and compare it with the current timestamp to decide whether to use that document or not.