Access Realm Sync metadata (datetime of sync with Atlas)

Is there any way to know the datetime at which a document was synced to Atlas with Realm Sync? I need to access this kind of metadata. For example, a document may have been added offline by a user on 01/02/2022 but only synced to Atlas on the 03/02/2022.

Many thanks in advance!

There isn’t this capability built-in at this time but you can add it to your data model as a dataSynced field and then use a Database trigger to add the timestamp anytime there is a net new insertion or for updates a lastSynced time.

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.