For example, if I have a Firestore document that looks like this:
{
threadId: 'abc',
authorId: 'abc',
content: 'blah blah blahh'
}
Can I make Firebase throw an error if I accidentally write some code that adds another field, like this:
{
accident: 'OOPS! THIS FIELD SHOULD NOT BE HERE',
threadId: 'abc',
authorId: 'abc',
content: 'blah blah blahh'
}
Like static typing for the shape of each document and enforced from the Firestore side. Is that possible?