module Hathor::CollectionMacro

Direct including types

Defined in:

macros/collection.cr

Macro Summary

Macro Detail

macro collection(collection_name, **options) #

collection macro

  • it populates the PROPERTIES hash
  • creates property name : Array(type | Nil) - Nil only if nilable

[View source]
macro collection!(name, **options) #

shortcut for "nilable: false" option


[View source]