MongoDB TTL does not work on atlas but works fine on localhost

Ok.

  1. Dropping my existing index by clicking Drop on expiresAt_1. Then clicking on Create Index on top right.
  2. Pasting { "expiresAt": 1 }, { expireAfterSeconds: 0 } inside Fields because there is already a placeholder there. Also, I read this article.

Oh is that so? Because this is what I was doing. I will retry this time by pasting inside options.