App that includes a couple of sample data to test and play around with Loupe.
- Boot the database
docker-compose up -d. - Initialize the database
mix ecto.reset. - Start the server and play around
iex -S mix phx.server.
You can then attempt to run query with:
alias LoupeExample.EctoDefinition, as: Def
Def.query(~s|get Driver where driver.positions.position = 1|)The above query
get all Team where drivers.positions.position <= 3
get all Driver where team.name like "Aston Martin"
get all Track where races.positions.position = 3 and races.positions.driver.abbreviation = "ALO"
get all Track where races.date < "2023-04-01"