
each order will have multiple Products

so i thought of using array of objects

Right so have a collection of order items. And in the orders collection you'd have an array of IDs (strings)

will array of objects supported in future release?

most likely not especially since we have relationships in the latest bersion of Appwrite

How can i create a relationship for a user(Auth) with collection,

Unable to create new attributes for Auth

I would suggest creating a profiles collection for any user related data you want to use in your app. then you can use database relationships with that collection (assuming you're on Appwrite version 1.3.x)

yes. I am using 1.3.7

i dont see any option to create a releationship with Auth collection, I am using the email and password authentication


i am seeing only Products and Orders collection

I expected to see Authentication collection

I have collection called userProfiles, i want to make a relationship with Auth

You can't make a relationship with the Auth service.

ok, so copy the $id from AuthService and keep it in UserProfile

I typically use the same user Id as the document ID in my user profiles collection

Sure.. That helps

Thanks Steven

Is your issue solved @ddet2022 ?

yes, but i am looking for better solution for initial problem. how to have objects in sting array[]

I have tried JSON.stringify, it worked.

Sounds like the issue is fixed, thanks for your help

appreciate your support.. Impressed

[SOLVED] looking for somehelp in relationships,
Recommended threads
- PKCE, Etsy, OIDC, External OAuth provide...
first, thanks for creating and maintaining this software. I'm almost glad i couldn't convince my (wise and wonderful) senior devs to try pocketbase on productio...
- Appwrite database is rounding int values
Hi, i just noticed that appwrite is rounding the value 608542412536545279 to 608542412536545300 in my int array. It seems to somewhat relate to this github iss...
- URGENT: Auth Data GONE and replaced by "...
This issue appeared suddenly and without warning yesterday. My auth page is replaced by the 404 error, and I don't have access to any users. When users try to l...
