title: Phoenix Framework: How can I pass :infinity value as parameter for Ecto.query
body: <p>How can I pass <code>:infinity</code> value as parameter for <code>Ecto.query</code>.</p>
  <pre><code>from(query, limit: ^limit, offset: ^offset)
  </code></pre>
  <p>Since the <code>limit</code> value here is <code>:infinity</code>, I am getting the following error.</p>
  <pre><code>value `:infinity` in `limit` cannot be cast to type :integer in query
  </code></pre>
  <p>How can I make a query where there is no limit for such a query (because I can get too many results as a result of the query)?</p>
  <p>Is there any proper way to do it?</p>