title: How to insert array of strings in postgres using raw query in elixir
body: <p>I am trying to insert into the postgres using Elixir Ecto.Adapters.SQL.query, the query consists of array of tags which are strings. However it does inset into postgres, but not as a list of strings, but a single string. 
  i.e. if tags contains ["abc","xyz"], it inserts in postgres as abcdef and not as array. </p>
  
  <p>Important to mention, i am not using schema or migrations. Simple raw queries.</p>
  
  <p>Map that needs to be inserted in postgres </p>
  
  <pre><code>  response_map=  %{"description" =&gt; "des33", "id" =&gt; 158,
    "inserted_at" =&gt; "2017-06-09T10:19:03.904572", "tags" =&gt; ["abc","xyz"],
    "title" =&gt; "test 1", "updated_at" =&gt; "2017-06-09T10:19:03.904578"}
  </code></pre>
  
  <p>Code that i use</p>
  
  <pre><code>%{"description" =&gt; desc, "id" =&gt; id, "title" =&gt; title, "tags" =&gt;  tags}=response_map
  Ecto.Adapters.SQL.query!(Repo,"insert into test values ('#{id}','#{title}','#{desc}','#{tags}')") 
  </code></pre>