
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
- Client < --> Server Handshake
hey all — quick help? goal: from a React (Vite + Chakra) app, call an Appwrite Node Function that creates/reads/updates DB docs as the logged-in user (no API k...
- I am using hostinger DNS or appwrite DNS
I have a domain purchased on hostinger. I am also using their email hosting so there are DNS records for the email that are important. appwrite sites wants me t...
- Invalid `queries` param: Queries must be...
I dont really understand why i am having this issues, ```import { Client, Users, Query } from 'node-appwrite'; export default async ({ req, res }) => { con...
