Type alias EnsureTtlIndexOptions

EnsureTtlIndexOptions: EnsureIndexOptionsType<"ttl", [string], {
    expireAfter: number;
}>

Options for creating a TTL index.

Type declaration

  • expireAfter: number

    Duration in seconds after the attribute value at which the document will be considered as expired.