-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't unwrap automatically for Number to Datastore Types #760
Comments
It would be nice to create a migration path for DB created before inference is removed. In such DB there could be a mix of integer/float for the same property and |
Going to block on this happening for a bit. Warning may be enough and is in PR, tracked by 759. |
I am rewording this as the approach has moved from removal to changing the default behavior. By default we shouldn't unwrap these. Int and Double , as of the pr (773) extend Number. Keeping them wrapped should cause no/minimal friction, but allow us to still have additional data about the type in datastore. |
Reconsider the approach (back to removal) — added the |
Related to #754, #759
Remove auto inference of Numbers. This is a 'foot-gun' in the library and we should encourage usage of
datastore.double
anddatastore.int
so the library doesn't choose poorly.This is for sure used in Save and Query today.
Note: breaking change.
The text was updated successfully, but these errors were encountered: