Home > Software engineering >  Unable to access field that has hyphen in it
Unable to access field that has hyphen in it

Time:07-11

I am struggling to write a firebase rule that is checking the user id that is stored in a document. Hardcoding a given value as a string works

allow write: if request.auth.uid == 'user-id-hardcoded';

,however I am unable to find a way to dynamically address it. I am left with the impression it's due to the hyphen in the document field after checking this question - enter image description here enter image description here

  • Related