We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
luckyframework/avram#695
The text was updated successfully, but these errors were encountered:
Just a few notes on how to use this:
class User < BaseModel table do column preferences : UserPreferences, serialize: true end end struct UserPreferences include JSON::Serializable property? receive_email : Bool = true end class SignUpUser < User::SaveOperation before_save do preferences.value = UserPreferences.from_json("{}") end end class UpdateUser < User::SaveOperation attribute allow_email : Bool before_save do prefs = preferences.value.not_nil! prefs.receive_email = !!allow_email.value end end user = UserQuery.new.first user.preferences.receive_email?
As of right now, there's no special way to query against it.
Sorry, something went wrong.
Adding docs for serializable columns. Fixes #741
cdd0aaf
Adding docs for serializable columns. Fixes #741 (#1020)
d4e6f0e
Successfully merging a pull request may close this issue.
luckyframework/avram#695
The text was updated successfully, but these errors were encountered: