Back

replacing attribute with new

  • 0
  • Databases
  • Cloud
IAmWhatIAm
30 Sep, 2023, 21:21

Hopefully its ok to share 🤣 lolz

TL;DR
The user is experiencing an issue where a specific attribute is not showing up in the Document object. They have tried recreating the collection and it works fine on self-host but not on cloud. They suggest trying listDocuments() instead of getDocument(). The user also mentions using a nuget package for appwrite to fetch specific document data. They apologize for misreading a question and clarify that they were testing the scenario of deleting a column and replacing it with a new one. The user is planning to share their code. There is no solution provided in this support thread.
Drake
30 Sep, 2023, 21:22

Project ids are fine. The only thing sensitive are API keys

IAmWhatIAm
30 Sep, 2023, 21:22

😎👍

Drake
30 Sep, 2023, 21:22

When did you delete the attribute?

IAmWhatIAm
30 Sep, 2023, 21:25

As i mentioned its to evaluate the scenario i faced in project where we need to delete a column data and replace with new data which is of different type. So wanted to see how to do that here as i am evaluating whether we can migrate to appwrite .

In conventional sense it would be ETL which i did for 1000 records which is easy. Extract drop ,recreate.

Drake
30 Sep, 2023, 21:25

Yes, but when did you do this?

IAmWhatIAm
30 Sep, 2023, 21:26

Like 30 mins back or so

IAmWhatIAm
30 Sep, 2023, 21:26

Oops i read ur question wrong sorry

Drake
30 Sep, 2023, 21:34

Cloud should have been running fine at that time 🧐

Drake
30 Sep, 2023, 22:42

How did you fetching the data?

IAmWhatIAm
1 Oct, 2023, 00:53

Will share code in sometime .

I used the nuget package for appwrite and used that to get specific doc data

Drake
1 Oct, 2023, 02:27

Sorry I meant did you use getDocument()? What if you tried listDocuments()?

IAmWhatIAm
1 Oct, 2023, 02:34

Yes i did use getdocument . Used listbdocument to get the document id and used that in getdocument.

Drake
1 Oct, 2023, 17:33

Is the attribute there in listDocuments() too?

IAmWhatIAm
1 Oct, 2023, 19:20

Will check that shortly

IAmWhatIAm
1 Oct, 2023, 19:21

Afk right now

IAmWhatIAm
1 Oct, 2023, 19:21

Also gonna try in selfhost whether any difference there

IAmWhatIAm
1 Oct, 2023, 19:34

the Document object doesnt have the attribute property.

btw, i just tested in self host, it works . but in cloud it does not.

Drake
2 Oct, 2023, 00:39

So doing list documents you don't see it, but doing get document you do?

IAmWhatIAm
2 Oct, 2023, 00:40

It shows in both

IAmWhatIAm
2 Oct, 2023, 00:41

In cloud, but in self host it works as expected

Drake
4 Oct, 2023, 14:31

Weird... Could you try recreating the collection and trying the process again?

IAmWhatIAm
4 Oct, 2023, 15:33

sure

IAmWhatIAm
4 Oct, 2023, 15:48

waiting for some time now 🙂

Drake
4 Oct, 2023, 16:43

Could be maintenance and can last an hour or so. Please wait

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