“ getDocuments”已被弃用,不应使用

问题描述

VScode使用Firebase和Firestore中的getdocument和其他功能显示警告。任何人都可以解释它为什么显示enter image description here

解决方法

不用担心,只需使用函数get()而不是getDocuments()。基本上,这意味着与get()关键字相比,关键字getDocuments()现在更受欢迎。只需使用get(),它就可以正常工作。