No such method/property 'isString' in Firebase Database rule -


i'm new in firebase, want each project property string of minimum length 32

{ "rules": {   "project": {     "$a": {       ".read": true,       ".write": "auth != null && $a.isstring() && 32 <= $a.length", 

here $a project property name $a.isstring() not aviliable & getting error

enter image description here

how check $a string of minimum 32 length ?

keys strings, don't need (and apparently can't even) check that.

{   "rules": {     "project": {       "$a": {         ".read": true,         ".write": "auth != null && 32 <= $a.length", 

by way: yoda conditions don't make difference in firebase security rules, since we'll never assign value left-hand side of expression anyway.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -