Javascript Can';t通过密钥获取数据(Firestore)

Javascript Can';t通过密钥获取数据(Firestore),javascript,google-cloud-firestore,Javascript,Google Cloud Firestore,我无法通过Firestore密钥获取数据 TypeError:relativePath.split不是函数 我已经用字符串更新了数据 19910929至'19910929' 那就行了 对不起,我已经更新了我的代码。 export const itemsFetch = () => { return (dispatch) => { firebase.firestore().collection('users').doc(19910929).get() .then((

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

TypeError:relativePath.split不是函数


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

19910929
'19910929'


那就行了

对不起,我已经更新了我的代码。
export const itemsFetch = () => {
  return (dispatch) => {
  firebase.firestore().collection('users').doc(19910929).get()
      .then((snapshot) => {
        console.log('snapshot:', snapshot);
      })
  };
};