I want to make a collection of users, users will have multiple stores as documents, each document have fields like storeName
, storeAddress
and availableProducts
. My question is that how to manage availableProducts array? I know Firestore can't handle arrays, I should use HashMap. My available products may have field like product name, product price etc. I am new in Firebase, how can I manage availableProduct
array using java in Android Studio?
FireBase Firestore DataBase Image
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…