Hello everyone,

This is my first time posting, please excuse me if I did something wrong :)

I am writing a query like below,

query = 
    from u in User,
    where: u.id in ^user_ids,
    select: {u.id, u}

data =
    query
    |> Repo.all()
    *|> Enum.into(%{})*

As follows, Does it make sense to add the "into" keyword into to this query?

query = 
    from u in User,
    where: u.id in ^user_ids,
    select: {u.id, u},
    
*into: %{}*
data =
    query
    |> Repo.all()


I would like your thoughts on this one.

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/0e57204b-302b-494e-bcce-e0d1776218a8n%40googlegroups.com.

Reply via email to