在Firestore中構(gòu)建此類數(shù)據(jù)的正確方法是什么?我從Google Firebase服務(wù)中看過視頻并閱讀了Cloud firestore的文檔,但我無法想象實時數(shù)據(jù)庫。我想到了這個Web應(yīng)用程序,我希望從不同類別的產(chǎn)品中存儲我的提供程序。我希望通過我的所有產(chǎn)品執(zhí)行搜索查詢,以查找我對此類產(chǎn)品的提供商,并最終訪問該提供商信息。我打算為此目的使用這個結(jié)構(gòu):Providers ( Collection )
Provider 1 ( Document )
Name
City
Categories
Provider 2
Name
CityProducts ( Collection )
Product 1 ( Document )
Name
Description
Category
Provider ID Product 2
Name
Description
Category
Provider ID所以我的問題是,一旦我得到我想要的產(chǎn)品,這種方法是否是訪問提供商信息的正確方法?我知道在實時數(shù)據(jù)庫中這是可能的,使用我可以在提供者部分中搜索該提供者的提供者ID,但是使用Firestore我不確定它是否可行或者這是否正確。
添加回答
舉報
0/150
提交
取消