運行: firebase experimental:functions:shell
當我嘗試打電話給我的功能,像這樣: sendEmail('data', {params: 'commentId:12'})
我得到: Info: Function crashed TypeError: Cannot use 'in' operator to search for 'exists' in da
希望這裏有一個相對簡單的問題,使用Firestore查詢 我試圖創建一個新聞源,從最舊的內容中排序最新的內容。這部分非常簡單,我使用: var first = db.collection("feeds/0/active").orderBy("timestamp", "desc").limit(3);
其中檢索新聞提要中的3個最新條目。那麼我的想法是在下一個查詢中,拉下Feed中的下3個項目。因