The issue is that even though data has been deleted from both Atlas as well as locally, old data continues to reappear and sync. I have deleted the local files and terminated sync in the console and at that point, there is no local data. As soon as Sync is Enabled in the console, data sync’s (two objects) even though there is no data showing in the console.
Here’s a screenshot of the collection that previously had a couple of objects but as you can see, there is currently no data
When the app is run, the local Realm files are created and contain no data as expected. However, as soon as Sync is Enabled in the console, it appears that the old ‘ghost’ data is pushed to the app.
I am seeing this message in the console log but it’s not clear if this is indicating the client is pushing data UP to the server or if the server is pushing old deleted data to the client.
Source:
Write originated from MongoDB
Logs:
[
"Upload message contained 2 changeset(s)",
"Integrating upload required conflict resolution to be performed on 0 of the changesets",
"Latest server version is now 36"
]
Partition:
Order Tracker
Write Summary:
{
"OrderClass": {
"deleted": [
"60bb92c3a654cddf5736c5fb",
"60bb893757d59169fcdae14d"
]
}
}
The local files were manually deleted when the app was not running so this isn’t cached data.
Any ideas?