sen
Elixir :map
Hi all, what should input to field(:test, :map)?
field(:test, {:array, :map}) => name: [%{“name1” => “test”, “name2” => “test”}]
field(:test, :map) => ???
Most Liked
NobbZ
So this question is related to ecto?
From its documentation it seems as if :map simply maps over to elixirs map type, eg: %{} or %{"foo" => 2}.
3
Popular in Chat/Questions
A while back, I read a great book by Luis Atencio titled, Functional Programming in JavaScript. In section 7.3, he discusses memoization ...
New
How to run the random query and get the result in JSON format and send it as a response. The query will be in the following form
DB Name...
New
Hello Elixir Community!
I’m new to functional programming in general and to Elixir in particular but I’m very intrigued and would like t...
New
I am looking for smallish problems to solve, using Elixir concepts beyond the basic syntax and concepts of Elixir as a language, such as ...
New
Background
I am trying to recycle myself and improve my knowledge about Phoenix. With 1.7 now out, this seems like a good opportunity.
W...
New
I think that would be really interesting to have official books created by the community about all kinds of development we can do with El...
New
Background
I have been reading quite a lot about design and architecture in Elixir and overall FP. My latest incursions took to me the On...
New
Do we have a list of academic/research papers:
about Elixir/Erlang?
that use Elixir/Erlang?
about the Beam?
If so, could you please po...
New
Hi, I was looking for a pointer of how I could most easily start with phoenix regarding deploying it to something like linode or google c...
New
I was wondering if there are any beginner-friendly, exercise-based resources for learning Elixir out there. I’m looking for something lik...
New
Other popular topics
Manning 2016 Halloween weekend sale via Deal of the Day
Friday, October 28 - Half off all MEAPs - code WM102816LT
Saturday, October 29 ...
New
In Ruby, I can go:
User.find_by(email: "foobar@email.com").update(email: "hello@email.com")
How can I do something similar in Elixir? ...
New
can someone please explain to me how Enum.reduce works with maps
New
What is the idiomatic way of matching for not nil in Elixir?
E.g.,
First way:
defp halt_if_not_signed_in(conn, signed_in_account) when...
New
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine)
This is a plugin that adds support for Elixir to JetBrains IntelliJ...
New
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
New
ExUnit now has describe blocks which is a welcome addition coming from RSpec. In the docs, it states that nested hierarchies of describe ...
New
Hello guys,
I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New







