Exandra.Set (exandra v0.5.0)

Ecto.Type for sets.

options

Options

  • :type (atom/0) - Required. The type of the elements in the set.

examples

Examples

schema "users" do
  field :email, :string
  field :roles, Exandra.Set, type: :string
end