
I am currently trying to use an appwrite function to update and overwrite the data stored in a database collection for users with but the function doesn't seem to be working or called. The data is stored as a string list. Is there something wrong with how i'm calling it?
TypeScript
// Updating user topics
Future<bool> updateUserTopics(String userId, List<String> topics) async {
try {
await databases.updateDocument(
databaseId: '6581a7a98574997f7e84',
collectionId: '6581a97c17588b1fb066',
documentId: userId,
data: {
'Topics': topics
},
);
print("Topics updated successfully.");
return true;
} catch (e) {
print("Error updating topics: $e");
return false;
}
}
TL;DR
The developer is having trouble updating and overwriting data stored in a database collection using an appwrite function. They are using a string list to store the data. They are unsure if there is an issue with how they are calling the function.Recommended threads
- Getting issue while migrating from Self ...
i try to migrating my project but when do this error come and dont allow to crate that migration
- Need help setting up this error is showi...
You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy. If you're the app developer, register the redirect URI in the Google Cl...
- Appwrite stopped working, I can't authen...
I'm having an issue with Appwrite. It was working fine just a while ago, but suddenly it stopped working for me and can't authenticate accounts. I even went bac...
