ExAws.Dynamo v2.0.1 ExAws.Dynamo.Encoder View Source

Takes an elixir value and converts it into a dynamo style map.

MapSet.new [1,2,3] |> Elixir.ExAws.Dynamo.Encoder.encode
#=> %{"NS" => ["1", "2", "3"]}

MapSet.new ["A","B","C"] |> Elixir.ExAws.Dynamo.Encoder.encode
#=> %{"SS" => ["A", "B", "C"]}

"bubba" |> ExAws.Dynamo.Encoder.encode
#=> %{"S" => "bubba"}

This is handled via the ExAws.Dynamo.Encodable protocol.

Link to this section Summary

Link to this section Functions

Link to this function atom_to_dynamo_type(value) View Source
Link to this function encode!(value, options \\ []) View Source
Link to this function encode_root(value, options \\ []) View Source