Why does the firebase asks me for reading permision in order to write something in a collection?
Here is what i am trying to do:
setDoc(doc(db, "UserOrders", {arguments[4] + 1}), {
name: arguments[0],
lastname: arguments[1],
image: arguments[2],
contact: arguments[3],
orderNumber: arguments[4] + 1
});
Obviously it is supposed to write some information into a collection, and it has nothing to do with the read property, but when i attempt to execute this code i get the next error;
Here are my firebase rules:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow create, write: if true;
}
}
}