ich meine, ich weiß, was diese sind, aber ich bin ein wenig über die Sicherheitsregeln, zum Beispiel verwirren:Firestore-Regeln, was ist eine Sammlung und ein Dokument?
service cloud.firestore {
match /databases/{database}/documents {
// This is probably a mistake
match /spaceships { // <= what is this a collection or a document?
allow read;
// In spite of the above line, a user can't read any document within the
// spaceship collection.
}
}
}
Firebase Dokumentation sagt:
Regeln für die Sammlungen gelten nicht für Dokumente innerhalb diese Sammlung. Es ist ungewöhnlich (und wahrscheinlich ein Fehler), eine Sicherheitsregel zu haben, die auf der Sammlungsebene statt auf der Dokumentebene geschrieben ist.
Das bedeutet, dass diese match /spaceships {...
eine Sammlung richtig ist?
Aber später haben wir diese:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**}{ // <= what is this a document or a collection?
allow read, write: if true;
}
}
}
Ich verstehe nicht, ist dies match /{document=**}{...
ein Dokument? oder eine Sammlung? Ich meine, ist auf der Sammlungsebene.