【发布时间】:2020-10-12 11:43:40
【问题描述】:
我有这个 Fire 数据库的结构
如果我需要找到一个特定的盒子,我会在 Angular 中完成
url = 'https://box-xxxyyy.firebaseio.com';
getBox( box: string) {
return this.http.get<any>(`${ this.url }/box/${ box }.json`)
.pipe(
map( res => {
return res;
} )
);
}
但是如果我需要在“颜色”字段中找到所有带有“红色”的记录,我该怎么做?
【问题讨论】:
标签: angular firebase ionic-framework firebase-realtime-database