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
- Quota not resetting
hi, im using appwrite's free tier plani hit my read limts last month and the billing cycle said it would reset on june 4th but that is today, the billing cycle ...
- Request for temporary 3 to 4 hours datab...
Hi Appwrite Team, I hope you are doing well.We are an early-stage startup currently running on Appwrite Cloud. We have unfortunately exhausted our database rea...
- Realtime Error Invalid query: Syntax err...
I was test driving Self-Hosted Appwrite for my use with Swift IOS apps as a backend while back and after successful trials, I started to move to incorporate int...