Exandra.Map (exandra v1.1.0)

Copy Markdown View Source

Ecto.ParameterizedType for maps.

Options

  • :key (term/0) - Required. The type of the keys in the map.

  • :value (term/0) - Required. The type of the values in the map.

Examples

schema "user_metadata" do
  field :free_form_meta, Exandra.Map, key: :string, value: :string
end

Summary

Types

key()

@type key() :: term()

t()

@type t() :: %{optional(key()) => value()}

value()

@type value() :: term()