Exercise: Create Queries in Ecto

Practice how to use the Ecto.Query API to build your own query in this challenge.

We'll cover the following

Problem statement

When given a name of an artist, we want to be able to look up all of the albums associated with that artist.

Coding challenge

Write a function that takes an artist’s name as an argument and returns a list of the names of all of their albums. Your function should create and execute the correct query. For now, don’t worry about error handling.

Get hands-on with 1200+ tech skills courses.