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 have updated data to that with string.
19910929 to '19910929'
That would work!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With