【发布时间】:2020-03-24 02:26:56
【问题描述】:
如何使用 ID 列表从集合中获取文档查询?假设我有以下内容:
List<String> someList = ['abc123', 'def456', 'hij789']; // Need to query for these documentIDs
我通常会执行以下操作。但这显然行不通,因为我需要查询 documentID。
Query query = Firestore.instance
.collection(APIPath.products())
.where('someField', whereIn: someList);
【问题讨论】:
标签: firebase flutter google-cloud-firestore