I call getDocument from a function, but i get no result, neither it runs into an exception:
try {
Databases databases = Databases(client);
Document docRef = await databases.getDocument(
databaseId: Constants.APPWRITE_DATABASE,
collectionId: Constants.APPWRITE_COLLECTION_EVENTS,
documentId: eventController.getEventId());
context.log("SaveFile: getDocument successfully sent and returned");
} catch (error) {
context.log("Error when checking Validity");
context.error(error);
}
What's wrong with my code?
I'm using Appwrite Server 1.4.13 and dart-appwrite 10.1.0
Recommended threads
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Function in Node.JS to monitor events ar...
Hello everyone. I'm creating my first Node.JS function, but I don't have much experience with node and javascript. I'm trying to create a function, that monito...
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.