问题描述
VScode使用Firebase和Firestore中的getdocument和其他功能显示警告。任何人都可以解释它为什么显示。enter image description here
解决方法
不用担心,只需使用函数get()
而不是getDocuments()
。基本上,这意味着与get()
关键字相比,关键字getDocuments()
现在更受欢迎。只需使用get()
,它就可以正常工作。
VScode使用Firebase和Firestore中的getdocument和其他功能显示警告。任何人都可以解释它为什么显示。enter image description here
不用担心,只需使用函数get()
而不是getDocuments()
。基本上,这意味着与get()
关键字相比,关键字getDocuments()
现在更受欢迎。只需使用get()
,它就可以正常工作。