【发布时间】:2018-11-14 12:39:27
【问题描述】:
我正在尝试获取 UID 数据。
这是我的 Firebase 数据库结构
规则
我在 .ts 中的代码
firebase.database().ref('/appointment/').orderByChild('keys').equalTo(this.user.$key).once('value').then(snapshot => {
snapshot.forEach(function(child) {
console.log(child.key);
});
})
但我在控制台中得到了这个
FIREBASE WARNING: Using an unspecified index. Consider adding ".indexOn": "keys" at /appointment to your security rules for better performance
请知道我做错了什么吗?我怎样才能得到uid??
【问题讨论】:
标签: firebase firebase-realtime-database ionic3 angularfire2