Joined June 2013
·

Dima Mescheryakov

Minsk, Belarus
·
·
·

Hi @rheckart i have found a way and it works for me. Try to change:
elixir org = %Organization{domain: "test.com", email: "test.tester@test.com"} |> Repo.insert org_as_json = Repo.all(Organization) |> Poison.encode!(org)
then you will not need to serialize the list of organization objects. You can just use
elixir @derive {Poison.Encoder, only: [:foo, :bar, :baz]} schema "your schema" do field :foo field :bar field :bak end
with Poison 1.5

Achievements
39 Karma
0 Total ProTip Views