
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
- Best approach for handling users (creati...
I found out appwrite is wayy different to supabase, so i just wanted to check my approach is correct. Normally when creating user, I'd have something like a t...
- I am facing this error: type 'Null' is ...
When attempting to fetch areas from the area collection, the application throws an error: "type 'Null' is not a subtype of type 'int.'" This issue originates in...
- #support
<#1072905050399191082> any help on that?
