Using MongoDb in Phoenix framework

@ericmj @hubertlepicki thanks for replying guys.

I think my data is either in the wrong format or I’m missing something.

Does the result below look correct? if so, how do I access “color”?

[%Ap.Block{__meta__: #Ecto.Schema.Metadata<:loaded, "blocks">, 
  id: 1, 
  name: "foo",
  style: [%Ap.CustomField{
    data: [%{"color" => "red"}],
    id: "4222329c-cac4-4e1d-bfa6-6c440dcb7b59"}
  ], 
  template: "baz",
  inserted_at: #Ecto.DateTime<2016-11-18 00:58:41>,
  updated_at: #Ecto.DateTime<2016-11-18 00:58:41>}]