const doc = await databases.createDocument(
DATABASE_ID,
USERS_COLLECTIONS_ID,
ID.unique(),
{ user_id: user.user.$id },
);
// how to get attribute data/values of doc????
Like this for example, how would I obtain the DATA like user_id (and other default values) from the document I just created.....
What did you see when you logged doc?
Oh I see the values, the Appwrite Documentation never said that there could be more properties in the object
I thought there were other functions to obtain the value.
I'm a newbie with databases and all of this
Yes, your document is returned along with all of its data.
It's sort of mentioned here too https://appwrite.io/docs/products/databases/quick-start#create-documents
Recommended threads
- Permissions error
I try to create a row in my table but when i submit i have an error on my permission, i'm new on it so i dont understand the error. I have Row Security enable ...
- Console: Query on attribute has greater ...
I noticed an issue when one of my tables reached over ~800 rows. That table is relational to my users table Within the console I am able to view the table with ...
- Appwrite 1.8.1 TablesDB Permissions Issu...
Hi - I'm migrating a newer VueJS web application from Supabase to Appwrite. I'm looking for an experienced Appwrite Developer to help me solve a permissions iss...