How do I set TTL for a document using realm-web?

This article says to use createIndex to set the TTL, but realm-web did not have it. How can I do this? If not, how can I do the same thing using Triggers, etc.?

Hi @_8888,

Those instructions are for creating a TTL index on your MongoDB collections, which is not possible via the Realm SDKs. You can instead connect to your cluster using mongosh and run the createIndex command there. See https://www.mongodb.com/docs/atlas/tutorial/connect-to-your-cluster-v2/ for more instructions on connecting to your Atlas cluster from the shell.