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
1 Answer
Reset to default 11I have updated data to that with string.
19910929
to '19910929'
That would work!