【问题标题】:Can't fetch data through the key (Firestore)无法通过密钥(Firestore)获取数据
【发布时间】:2019-01-19 18:22:22
【问题描述】:

我无法通过 Firestore 密钥获取数据。

TypeError: relativePath.split 不是函数

export const itemsFetch = () => {
  return (dispatch) => {
  firebase.firestore().collection('users').doc(19910929).get()
      .then((snapshot) => {
        console.log('snapshot:', snapshot);
      })
  };
};

【问题讨论】:

    标签: javascript google-cloud-firestore


    【解决方案1】:

    我已经用字符串更新了数据。

    19910929'19910929'

    这样行!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-11-21
      • 2016-12-28
      • 2018-11-06
      • 1970-01-01
      • 1970-01-01
      • 2017-07-02
      • 1970-01-01
      相关资源
      最近更新 更多