私はそれらが何であるかを知っているが、私は少し例えば、セキュリティルールについて混乱しています意味:Firestoreのルール、コレクションとドキュメントは何ですか?
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ドキュメントは言う:コレクションの
ルール内のドキュメントには適用されません。そのコレクション。ドキュメントレベルではなくコレクションレベルで書かれたセキュリティルールを持つことは珍しいことです(おそらくエラーです)。
つまり、match /spaceships {...
はコレクション権利ですか?
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**}{ // <= what is this a document or a collection?
allow read, write: if true;
}
}
}
私は理解していないが、このmatch /{document=**}{...
文書です:
しかし、その後の
我々はこれを持っていますか?またはコレクション?私はコレクションレベルにあることを意味します。 Firestoreで