Rank 1: Thread
each order will have multiple Products
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 1: Thread
each order will have multiple Products
Rank 1: Thread
so i thought of using array of objects
Admin
Right so have a collection of order items. And in the orders collection you'd have an array of IDs (strings)
Rank 1: Thread
will array of objects supported in future release?
Admin
most likely not especially since we have relationships in the latest bersion of Appwrite
Rank 1: Thread
How can i create a relationship for a user(Auth) with collection,
Rank 1: Thread
Unable to create new attributes for Auth
Admin
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)
Rank 1: Thread
yes. I am using 1.3.7
Rank 1: Thread
i dont see any option to create a releationship with Auth collection, I am using the email and password authentication
Rank 1: Thread
Rank 1: Thread
i am seeing only Products and Orders collection
Rank 1: Thread
I expected to see Authentication collection
Rank 1: Thread
I have collection called userProfiles, i want to make a relationship with Auth
Admin
You can't make a relationship with the Auth service.
Rank 1: Thread
ok, so copy the $id from AuthService and keep it in UserProfile
Admin
I typically use the same user Id as the document ID in my user profiles collection
Rank 1: Thread
Sure.. That helps
Rank 1: Thread
Thanks Steven
Moderator
Is your issue solved @ddet2022 ?
Rank 1: Thread
yes, but i am looking for better solution for initial problem. how to have objects in sting array[]
Rank 1: Thread
I have tried JSON.stringify, it worked.
Rank 1: Thread
Sounds like the issue is fixed, thanks for your help
Rank 1: Thread
appreciate your support.. Impressed
Moderator
[SOLVED] looking for somehelp in relationships,