octabytes / FireO

Google Cloud Firestore modern and simplest convenient ORM package in Python. FireO is specifically designed for the Google's Firestore
https://fireo.octabyte.io
Apache License 2.0
249 stars 29 forks source link

Refactor create query to fix meta.ignore_none_field = True #181

Closed ADR-007 closed 1 year ago

ADR-007 commented 1 year ago

meta.ignore_none_field now means: Ignore default None values but save None if it was set explicitly:

MyModel().save()  # ignore Nones
MyModel(my_field=None).save()   # ignore Nones but not for my_field
MyModel(my_field=None).update(key)  # partial update with my_field is None