
If try to update pref then its deleting all previous data and updating only one field which i am updating . it is deleting all the previous data and updating only the "currency" field with the value of newcurrency.
prefs: {
"currency":newcurrency,
},
);```

is this an array?

You'll need to concat the previous one

its funny cuz I was having the same issue yesterday lol

but why.

Because the function only store the data

It doesn't update it

hmm

doc link for pref


This?

ok got i t

is there is option for creating pref ?

No

Just get and update

ok

[CLOSED] trying to update pref, its deleting all previous data.
Recommended threads
- Appwrite isn't accepting the api from se...
Error creating user: AppwriteException: Server Error type: 'general_unknown', response: '{"message":"Server Error","code":500,"type":"general_unknown","versi...
- Subject: Request for temporary quota lif...
Hi Appwrite Team, our nonprofit animal rescue app on Appwrite Cloud is currently throttled due to read‑quota limits, and we need a temporary increase so rescue ...
- Type String is not a subtype of type int...
In flutter using appwrite: ^17.1.0, ```DocumentList response = await databases!.listDocuments( databaseId: "xxx", collectionId: "xxx", ...
