我正在嘗試獲取多個檔案,但我無法做到。我想獲取包含我的搜索條件的多個檔案。
這是我嘗試過的。
final FirebaseFirestore db = FirebaseFirestore.instance;
QuerySnapshot<Map<String, dynamic>> querySnapshot = await db
.collection('MyCollection')
.where('FldName', 'in', ['123', '345', '111']).get();
指向的語法錯誤'in':
Too many positional arguments: 1 expected, but 3 found.
這是我的火力基地的樣子。

uj5u.com熱心網友回復:
你需要whereIn像這樣使用:
.where('FldName', whereIn: ['123', '345', '111']).get();
不,in作為String.
uj5u.com熱心網友回復:
where 查詢可能不正確,請嘗試使用我從docs獲得的查詢。
.where('FldName', arrayContainsAny: ['123', '345', '111'])
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/453341.html
