I have a profile collection in Firebase:
{
"name": "Lars",
"age": 53,
"posts": [
{
"title": "My first post!",
"body": "This is my first post!"
},
{
"title": "My second post!",
"body": "This is my second post!"
}
]
}
The user will update his posts from the frontend. How can I ensure he is only putting in posts which title
and body
field to this document? I don't want to create a collection with posts below.
Is this possible with firestore rules or I am forced to create a collection?