我目前正试图从Firebase中的实时数据库中检索登录信息。
例如,我希望检测数据库中是否已经存在提供的用户名。
下面是我尝试使用的代码片段。
ref.child("Users").order_by_child("Username").equal_to("Hello").get()
但是,它不起作用,而是显示以下消息:
firebase_admin.exceptions.InvalidArgumentError: Index not defined, add ".indexOn": "Username", f
我正试图使用firebase查询获得所有与M1相等的帖子,如下所示:
db.ref(`Recommendations`).orderByChild(`post/vote/moodTags/${idMood}/key`).equalTo(`${idMood}`).once('value').then(recs =>{
//Número de recs con el mood
let recsCount = recs.numChildren();
console.log(`Número de recs encontradas -
我有这样的结构:
conversations:
-439f6b3c0958:
-messages:...
-users:
-ccb756c0:
-userId: ccb756c0
...
我试图在会话/{someid}/users节点中查询/users的会话
Firebase sdk给了我这个警告,这对性能非常不利。
Using an unspecified index. Your data will be downloaded a
这是我的问题:
WARN: FIREBASE WARNING: Using an unspecified index. Consider adding ".indexOn": "id_logement" at /images/-KNx2y3mAkJZ-Poa7R03 to your security rules for better performance
我并不是一个在火场和规则方面的大师,所以这对我来说并不意味着什么.但我知道有个问题!
这是我的数据结构:
这是我的规矩!
{
"rules": {
".read
我几乎读过每一个StackOverflow的答案,但没有一个适合我的场景,因为这是一个常见的问题。我的Xcode控制台在Firebase中查询数据时给出了一个非常常见的警告。这个警告是Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ".indexOn": "username" at /users to your security rules for better performance 我所尝试的是首先阅读F