#How to store user specific data [solved]

3 messages · Page 1 of 1 (latest)

tribal hornet
#

I am going to make a react project an e-commerce web app and I am going to use appwrite.
But I don't How I can store user specific data eg. User 1 has store product A and B to Wishlist and User 2 has store product C. How I am going to do that? Any tutorial or documentation would work @opaque nexus

opaque nexus
#

I havent seen any projects like this
But you can either use relationship or just link with attribute.
Have a wishlist collection containing 2 attributes
User & wishlist. The user will have the correspondent userId and the wishlist can contain an array of strings where string indicate the wishlist product id of items.
Just limit the user to have less wishlist items or you could use multiple atrributes for containing these arrays.(the arrays can be stored as a single string as in stringified and just pharse when needed)

tribal hornet
#

Thanks I will try that