title: How to use Repo.get with select like in Repo.one
body: <p>I'm not sure this is possible but I like the fact that Repo.get is returning a Struct. </p>
  
  <p>I'm trying to do something like: </p>
  
  <pre><code>Repo.get(User, id, select: [:id, :name])
  </code></pre>
  
  <p>Like in:</p>
  
  <pre><code>Repo.one(from u in User, where: u.id == ^id, select: [u.id, u.name]
  </code></pre>
  
  <p>But with Repo.get, I cannot figure out from the Ecto docs if it's possible and how to achieve this. </p>
  
  <p>Context: I'm using Guardian and the serializer does something like: </p>
  
  <pre><code>def from_token("User:" &lt;&gt; id), do: {:ok, Repo.get(User, id,)}
  </code></pre>
  
  <p>So when I call <code>current_resource(conn)</code> I get a convenient user struct. But this query return all the infos of the user from the db which I'm trying to filter (for instance I don't want the encrypted password in my <code>current_resource(conn)</code>.</p>