我目前正在嘗試這個(實際上并沒有 orderBy 任何東西)
let articlesSnapshot = await getDocs(articlesRef, orderBy('timestamp'));
在檔案中,他們只使用查詢而不是 getDocs 來展示這個用例......有沒有辦法解決這個問題?
uj5u.com熱心網友回復:
訣竅是創建一個這樣的查詢:
let articlesSnapshot = await getDocs(query(articlesRef, orderBy('timestamp')));
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/401130.html
標籤:javascript 火力基地 谷歌云firestore
上一篇:運行SeleniumChrome驅動程式的TestContainer,java.lang.NoSuchMethodError
