Powered by AppSignal & Oban Pro
Would you like to see your link here? Contact us

DemoApp.Dogs

notebooks/dog_docs.livemd

DemoApp.Dogs

Section

The Dogs context.

change_breed/2

Returns an %Ecto.Changeset{} for tracking breed changes.

Examples

change_breed(breed)

create_breed/1

Creates a breed.

Examples

create_breed(%{field: value})
create_breed(%{field: bad_value})

delete_breed/1

Deletes a breed.

Examples

delete_breed(breed)
delete_breed(breed)

get_breed!/1

Gets a single breed.

Raises Ecto.NoResultsError if the Breed does not exist.

Examples

get_breed!(123)
get_breed!(456)

list_breeds/0

Returns the list of breeds.

Examples

list_breeds()

update_breed/2

Updates a breed.

Examples

update_breed(breed, %{field: new_value})
update_breed(breed, %{field: bad_value})