Setting - TTL , Expiration & Expiry in Eventing

I see that there is a expiry setting in github.

How do I set a TTL on a doc during a write in Eventing ?

bucket1[] = {"some":"data"}

also is there a touch() to move a TTL on a doc?

As of now, you cannot update meta or xattrs from inside the Function. Its in the roadmap.

cc @Siri

The ability to set expiry is tracked by In addition, it will also require the ability to modify the document that generated the mutation (and suppress the resulting recursion) and this is tracked by We hope to fix both of them in the very near future.

Thank you.