the client sends following json:
{"user": {"name": "jhon", "nationality", "brazilian", "gender": "male"}}
how can json , each field , value individually use in controller , ecto query?
automatically translated.
you should able use conn.params
so:
conn.params["user"]
, conn.params["user"]["gender"]
, etc.
Comments
Post a Comment