You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In firecms v2, I noticed that it sets all fields that were not touched (like strings that we didn't set for an entity) to null. Is there a way to prevent this? I could do this through a callback and set all fields to undefined but it will be nice if there was a way to do it using the schema. I could also define default values but that won't make sense for certain fields.
In v1, it didn't set any fields that we didn't touch which was ideal for our use case. Having default null values affects other clients that use the database for our case.
The text was updated successfully, but these errors were encountered:
I saw another thread discussion regarding setting null values for non-required fields. I feel like non-required fields, if not set and if not touched at all, should not even be added to firestore.
Hi there
In firecms v2, I noticed that it sets all fields that were not touched (like strings that we didn't set for an entity) to null. Is there a way to prevent this? I could do this through a callback and set all fields to undefined but it will be nice if there was a way to do it using the schema. I could also define default values but that won't make sense for certain fields.
In v1, it didn't set any fields that we didn't touch which was ideal for our use case. Having default null values affects other clients that use the database for our case.
The text was updated successfully, but these errors were encountered: