diff --git a/README.md b/README.md index e5c9f36..f8f8b6e 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ along with `:ex_aws` and your preferred JSON codec / http client def deps do [ {:ex_aws, "~> 2.0"}, - {:ex_aws_dynamo, "~> 2.1"}, + {:ex_aws_dynamo, "~> 2.2"}, {:poison, "~> 3.0"}, {:hackney, "~> 1.9"}, ] @@ -20,6 +20,19 @@ end Documentation can be found at [https://hexdocs.pm/ex_aws_dynamo](https://hexdocs.pm/ex_aws_dynamo). +## Configuration + +### `decode_sets` + +The default behavior of this application is to encode Elixir `MapSet` data to one of DynamoDB's three set types - number set, string set, or binary set; however, those DynamoDB datatypes will be decoded to Elixir `List`. If you wish to decode DynamoDB set types to Elixir `MapSet`, you can set the configuration for this application to include `decode_sets: true`. + +For example: + +``` +config :ex_aws, :dynamodb, + decode_sets: true +``` + ## License The MIT License (MIT) diff --git a/mix.exs b/mix.exs index 88b3284..074acd0 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule ExAws.Dynamo.Mixfile do use Mix.Project - @version "2.1.0" + @version "2.2.0" @service "dynamo" @url "https://github.com/ex-aws/ex_aws_#{@service}" @name __MODULE__ |> Module.split() |> Enum.take(2) |> Enum.join(".")