
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?
// 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;
}
}
Recommended threads
- my database attribute stuck in processin...
when i created attributes in collection 3 of those attributes become "processing", and they are not updating, the worst thing is that i cant even delete them s...
- Is Quick Start for function creation wor...
I am trying to create a Node.js function using the Quick Start feature. It fails and tells me that it could not locate the package.json file. Isn't Quick Start ...
- Forever Processing Issue
I encountered an issue when creating attributes in the collections . if you create an attribute of type string for example and choose a size of 200 or 250 or a...
