Back

Existing document being replaced by deleted document

  • 0
  • Databases
  • Web
Vinninho
29 Sep, 2023, 19:20

My collection currently has one document after deleting others. In the app, it sort of switches between available and not available. When I check in the console, one of the docs that I deleted is there! After a few seconds, I refresh the page and the valid document is there (deleted one gone)

TL;DR
User is experiencing an issue where a deleted document is being replaced by an existing document. The user wonders if the issue is at the document or collection level, and if using the same unique ID is causing the problem. The user is the only one using the app in development. The activity logs accurately show when the document was created. User suggests checking the created timestamp and activity on the collection to identify the creator. The user's collection currently has one document after deleting others, but in the app, it alternates between being available and not available. Upon checking the console, the deleted document reappears, but then disappears after a few seconds
Drake
29 Sep, 2023, 19:21

can you check the created timestamp and maybe the activity on the collection to see who's creating it? maybe the user is creating it in the app?

Vinninho
29 Sep, 2023, 19:23

It's still in development so I'm the only user. The activity logs correctly show when I created it

Vinninho
29 Sep, 2023, 19:43

I don't know why there are previous logs yet I deleted the document and created it again. I used the same Id since it's unique. Could that be the problem? Other new docs with random Ids don't have this issue

Drake
29 Sep, 2023, 22:31

i think this is the activity in the document itself. what about at the collection level?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more