Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support for default Value #12

Open
notz opened this issue Oct 3, 2017 · 3 comments
Open

Support for default Value #12

notz opened this issue Oct 3, 2017 · 3 comments

Comments

@notz
Copy link
Contributor

notz commented Oct 3, 2017

Very helpful for updates, if a document has a new int field with default value x.
Currently you have to update all document in an manual process before release, otherwise the documents can't be read.

@dozd
Copy link
Owner

dozd commented Oct 3, 2017

Or you can use Integer?

@notz
Copy link
Contributor Author

notz commented Oct 3, 2017

Yes, but then i always need a null check in the application which is not really nice. I would prefer a default value and no null check. Or at least don't throw a exception on this case -> the object already has a default value.

@dozd
Copy link
Owner

dozd commented Oct 3, 2017

Ok I see the point. It should not be large change.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants