sen
Hi all, what should input to field(:test, :map)?
field(:test, {:array, :map}) => name: [%{“name1” => “test”, “name2” => “test”}]
field(:test, :map) => ???
Trending in Chat/Questions
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 4- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
NobbZ
Can you please elaborate your question? Where does the
field/2function come from? What is meant by=>?sen
Hi, Thanks for reply.
just a schema table, i want to know what value should be input in field(:test1, :map).
schema “tablename” do
field(:id, :integer)
field(:name, :string)
field(:test1, :map)
field(:test2, {:array, :map})
end
because i know field(:test2, {:array, :map}) input like this
test: [%{“name1” => “test”, “name2” => “test”}] ,
but i dun know what value should be input in field(:test1, :map).
NobbZ
So this question is related to
ecto?From its documentation it seems as if
:mapsimply maps over to elixirsmaptype, eg:%{}or%{"foo" => 2}.sen
Yes, correct . Thanks for answer.