merge-upstream-5.0.1 #66
|
@ -19,9 +19,6 @@ defmodule Mobilizon.Storage.Page do
|
|||
|
||||
@doc """
|
||||
Returns a Page struct for a query.
|
||||
|
||||
`field` is use to define the field that will be used for the count aggregate, which should be the same as the field used for order_by
|
||||
See https://stackoverflow.com/q/12693089/10204399
|
||||
"""
|
||||
@spec build_page(Ecto.Queryable.t(), integer | nil, integer) :: t(any)
|
||||
def build_page(query, page, limit) do
|
||||
|
|
Loading…
Reference in a new issue