Joined June 2013
·
Achievements
39 Karma
0 Total ProTip Views
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Kona
Have at least one original repo where CoffeeScript is the dominant language
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
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