最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Can't fetch data through the key (Firestore) - Stack Overflow

programmeradmin1浏览0评论

I can't fetch the data through Firestore key.

TypeError: relativePath.split is not a function

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

I can't fetch the data through Firestore key.

TypeError: relativePath.split is not a function

export const itemsFetch = () => {
  return (dispatch) => {
  firebase.firestore().collection('users').doc(19910929).get()
      .then((snapshot) => {
        console.log('snapshot:', snapshot);
      })
  };
};
Share Improve this question edited Aug 13, 2018 at 8:37 Shun Yamada asked Aug 13, 2018 at 4:31 Shun YamadaShun Yamada 9791 gold badge10 silver badges26 bronze badges 0
Add a ment  | 

1 Answer 1

Reset to default 11

I have updated data to that with string.

19910929 to '19910929'

That would work!

发布评论

评论列表(0)

  1. 暂无评论