Flop.all
You're seeing just the function
all
, go back to Flop module for more information.
Specs
all(Ecto.Queryable.t(), t(), [option()]) :: [any()]
Applies the given Flop to the given queryable and returns all matchings entries.
iex> Flop.all(Flop.Pet, %Flop{}, repo: Flop.Repo)
[]
You can also configure a default repo in your config files:
config :flop, repo: MyApp.Repo
This allows you to omit the third argument:
iex> Flop.all(Flop.Pet, %Flop{})
[]
Note that when using cursor-based pagination, the applied limit will be
first + 1
or last + 1
. The extra record is removed by Flop.run/3
, but
not by this function.