document structure:
{
[id 1] {
field1: "value",
field2: "value",
field3: "value"
}
[id 2] {
field1: "value",
field2: "value",
field3: "value"
}
[id 3] {
field1: "value",
field2: "value",
field3: "value"
}
}
the map ids reference documents and cannot be hardcoded, but field names (field1, field2...), are the same in each map
is there a way to check that only 1 field in any 1 map is changed, and allow write if those conditions are met?