Skip to content

Instantly share code, notes, and snippets.

@samebchase
Created January 14, 2022 17:04
Show Gist options
  • Save samebchase/3b519f4d55f44ab58b26af346bc8f294 to your computer and use it in GitHub Desktop.
Save samebchase/3b519f4d55f44ab58b26af346bc8f294 to your computer and use it in GitHub Desktop.
Nullable Json columns
model foo is table<foo> {
has Str $.id is column;
has Json $.from_data is column{:nullable};
has Json $.to_data is column{:nullable};
has Json $.extra_data is column{:nullable};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment