【问题标题】:'getDocuments' is deprecated and shouldn't be used'getDocuments' 已弃用,不应使用
【发布时间】:2020-11-07 14:55:06
【问题描述】:

VScode 使用 getdocument 和 firebase 和 Firestore 中的其他函数显示警告。谁能解释一下为什么会显示。enter image description here

【问题讨论】:

标签: firebase flutter google-cloud-firestore


【解决方案1】:

别担心,只需使用函数get() 而不是getDocuments()。这基本上意味着关键字 get() 现在比 getDocuments()keyword 更受青睐和支持。只需使用get(),它就可以毫无问题地工作。

【讨论】:

    猜你喜欢
    • 2021-04-30
    • 2021-04-03
    • 2022-07-01
    • 2020-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-18
    • 1970-01-01
    相关资源
    最近更新 更多