Not sure if I’m missing something obvious, but consider the following code:
The document expiry does not get set, regardless if the document exists before or not. If the document already has an expiry it will set it back to 0.
I’ve tried various version of both server and sdk, currently sdk 2.7.0 and 6.0.0 build 1693 server.
If I remove the upsert, and the document happens to exist, the expiry will get set though, it seems to be that using upsertDocument will always clear the expiry.