Golang firestore library supports the ability to tag fields as omitempty meaning they will not get stored in the DB when not set. This could be done via e.g. combining Optional with a Config option like
class Model(AsyncModel):
field: Optional[str]
another: Optional[List[int]]
# ...
class Config:
omitempty = "*"
# or
omitempty = ["field", "another"]
Golang firestore library supports the ability to tag fields as omitempty meaning they will not get stored in the DB when not set. This could be done via e.g. combining
Optionalwith aConfigoption like