出于某种原因,我无法访问我的数据库中的所有数据 . 以下是创建对Firestore文档('templates')的引用的代码,该引用的可观察对象以及该可观察对象的订阅:

this.templateDoc = this.afs.collection('application').doc('templates');
this.templateObs = this.templateDoc.valueChanges();
this.templateObs.subscribe(
   (templates: any) => {
    console.log('Templates object:');
    console.log(templates);
    this.proj_srv.template = templates[this.proj_srv.model];
    this.proj_srv.initiateProject();
  });
}

Here是控制台输出 . 它显示以下对象:

Templates object:
{
Template 1: {
         Assembly : {Photo 1: "", Photo 2: ""}      
         Assembly 2: {Photo 1: "", Photo 2: ""}
         Assembly 3: {Photo 1: "", Photo 2: ""}
        }
Template 2: { Assembly 1: {...}, Assembly 2: {...}, Assembly 3: {...} }
Template 3: { Assembly 1: {...}, Assembly 2: {...}, Assembly 3: {...} }
}

问题是我的数据库中的键"Photo 1"和"Photo 2"的所有实例都具有完整路径作为值,而不是空字符串(图像数据为here) .

我真的看不出有什么问题 . 我是否正确使用Angular Firestore模块?