Write on firestore database

Can someone please help me understand how to write to the Firestore database with Kodular? I can’t figure out how to do it. I’m definitely doing the block logic wrong. I’m attaching a photo of how I set up the blocks. I’m using Jarlisson’s Firestore, and the API key, project ID, etc. are all set up correctly, but for now I’ve removed those blocks. Thanks.

Hi kodyugo,

Did you set the rules according to what’s stated on the extension’s page?

no. quali regole?

but those are open rules, not closed ones, or am I wrong? instead I need to use rules that allow writing only for users who have that uid

Try these

service cloud.firestore {
  match /databases/{database}/documents {
    match /users/{uid} {
      allow read, write: if request.auth != null && request.auth.uid == uid;
    }
  }
}