Hello I am facing the isssue that current user is not authorized in create Document
code async createPost({ title, content, image, status, userId }) { try { return await this.database.createDocument( conf.appwriteDatabaseId, conf.appwriteCollectionId, ID.unique(), { title, content, image, status, userId } ); } catch (error) { console.log("Appwrite Error ::: createPost error:::", error); } }
FYI, it's best to wrap code in backticks to format a bit nicer. You can use 1 backtick for inline code (https://www.markdownguide.org/basic-syntax/#code) and 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting.
what are the permissions on the collection?
Thank you my issue is now resolve i don't give any permission in collection Thank you i am excited to deploy my first application on appwrite <:react:637383195503099915>
[Solved] Create Document Error
Recommended threads
- support counts
I want just want number of rows i have matching few conditions, if databse.count was there then will had saved few resources, instead using databse.listrows
- Cannot use createdBefore query on bulk d...
sdk: dart version: 19.2.1 ```final timestamp = DateTime.timestamp() .subtract(const Duration(days: 1)) .toIso8601String(); await databas...
- Retrieving items from appwrite collectio...
Hello team, I started experiencing a weird bug yesterday. If I add multiple new items to a collection on the same day, it doesn’t show up in my app when I fetc...