Powered by AppSignal & Oban Pro

Run

notebooks.livemd

Run

Section

alias Run.Admin

blog_id = Admin.get_blog_with_posts_by_identifier!("landidsdng_pasdfge").id
Admin.get_posts_by_page(blog_id, "some tittle")
import Ecto.Query, warn: false
alias Run.Repo

alias Run.Admin.Blog
alias Run.Admin.Post

query = from(p in Blog, where: p.title == ^"sign-up")

# Repo.delete_all(query)

Users

alias Run.Accounts.User

alias Run.Repo

Repo.all(User)
Repo.get!(User, "f054d019-9dbe-484b-b1ee-3afe0e255fbb")
|> Repo.delete()