How can I define a TTL index on a MongoDB schema using NestJs
I am currently using Nest's SchemaFactory to setup my MongoDB models. Here is a link to their documentation: https://docs.nestjs.com/techniques/mongodb#mongo I was wondering how I could set a TTL index using this abstraction. I want every instance of a specific model…