Magik.PowerUpRepo.find
You're seeing just the callback
find
, go back to Magik.PowerUpRepo module for more information.
Specs
find(queryable :: Ecto.Queryable.t(), keyword() | map()) :: {:ok, item :: any()} | {:error, :not_found}
Find the first entry in the database that match the filter
case Repo.find(Product, brand_id: 1, is_active: true) do
{:ok, product} ->
IO.puts(product.name)
{:error, :not_found} ->
IO.puts("No product found")
end