Delay in obtaining the largest number

Like so:

2 Likes

ask

Is it necessary to set rules for this method?

{
"rules" : {
"abc": {"getMax": {
".read": true,
".write": true,
".indexOn": ".value"
}
}
}
}
because it prevents me from obtaining jobs already done with FirebaseDB

image

I work with this date method

{
"rules": {
".read": "now < 1735603200000", // 2024-12-30
".write": "now < 1735603200000", // 2024-12-30
}
}

Yes, you need to use the rules to set the indexOn. Try like this:

{
  "rules": {
    ".read": "now < 1735603200000", // 2024-12-30
    ".write": "now < 1735603200000", // 2024-12-30

    "getMax": {
        ".read": true,
        ".write": true,
        ".indexOn": ".value"
     }
  }
}
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.