How to create a ttl index in mongodb atlas Using mongoose?

Viewed 158

I'm building a node app and using mongoose

This is my first time creating a TTL index on mongodb atlas, idk because for some reason it does not seem to work.

node version v14.16.0

mongoose version 5.12.5

0 Answers
Related