【发布时间】:2020-03-19 15:59:54
【问题描述】:
首先,对不起我的英语很糟糕。
在我的 firebase 实时数据库中,我有:
- consommables
+ produit1 : 0
+ produit2 : 0
+ produit3 : 0
+ ........ : 0
- nameUser
- consommables
+ produit1 : 1
+ produit2 : 0
+ produit3 : 0
+ ........ : 1
我想将“consommables”的所有子类别与“name/consommables”的所有子类别进行比较,如果“consommables”中有一些子类别不存在于子类别中” name/consommables”,我想为这些记录存储值 0。
为此,我想在 List 中进行 2 个查询并比较这 2 个 List。但我不知道如何在 List 中记录查询。
你能帮帮我吗? 谢谢
【问题讨论】:
标签: list firebase firebase-realtime-database flutter