Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't fetch data through the key (Firestore)

I can't fetch the data through Firestore key.

enter image description here

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);
      })
  };
};
like image 297
Shun Yamada Avatar asked Jan 03 '23 00:01

Shun Yamada


1 Answers

I have updated data to that with string.

19910929 to '19910929'

That would work!

like image 182
Shun Yamada Avatar answered Jan 12 '23 09:01

Shun Yamada