
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
- Hola equipo de soporte,
Hola equipo de soporte, Estoy desarrollando una Function en Appwrite Cloud con Node.js 22 y el siguiente package.json: { "name": "upload-whitelist", "type"...
- Sites 30MB limit from GitHub
I’m deploying a site from github as Other type on the Hobby plan. It is actually a Flutter web app but it’s in a subdirectory with the root being an html landin...
- Google OAuth2 Login Gets Stuck in Redire...
I'm facing an issue with the Google OAuth2 login flow on my Flutter Android app using the Appwrite SDK. After a successful sign-in with Google, the browser ente...
