View Source Exandra.Map (exandra v0.16.0)

Ecto.ParameterizedType for maps.

options

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

Examples

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

Link to this section Summary

Link to this section Types

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