CurzonOriginal post
Rank 1: Thread
JavaScript
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.....
Summary
Developers are struggling to retrieve attribute data/values from a document just created in a node-appwrite project. The Appwrite Documentation lack clarity in this regard. To get attribute data, utilize the `doc.data` method.