Ecto.Query.limit
You're seeing just the macro
limit
, go back to Ecto.Query module for more information.
A limit query expression.
Limits the number of rows returned from the result. Can be any expression but has to evaluate to an integer value and it can't include any field.
If limit
is given twice, it overrides the previous value.
Keywords example
from(u in User, where: u.id == ^current_user, limit: 1)
Expressions example
User |> where([u], u.id == ^current_user) |> limit(1)