Can a TTL index delete a document currently locked inside a long running transaction?

A TTL index is applied to a mongodb collection. It is instructed to delete documents after expiration if A = true.

A document of this collection is currently locked inside a long running transaction. The document exceeds the TTL while in transaction. The value for A before the start of the transaction was true. When the transaction started, the value of A was modified to be false.

Hence, after the transaction is completed and the locked is removed on this document, then A = false.

Will this document be removed by the TTL after the transaction completes?

i don’t recall mongodb ttl index supports this removal condition?

look up partialFilterExpression