ZachDaniel
ZachDaniel
AEAsh Elixir
Created by ZachDaniel on 5/2/2025 in #showcase
Forum Channels in this discord are now available on AnswerOverflow
1 replies
AEAsh Elixir
Created by ZachDaniel on 5/2/2025 in #showcase
Ash Weekly #15 | Tidewave & Ash, better authorization errors in AshJsonApi & AshGraphql, Inertia sup
1 replies
AEAsh Elixir
Created by ZachDaniel on 5/2/2025 in #support
Test Question
Testing AnswerOverflow
4 replies
AEAsh Elixir
Created by ZachDaniel on 4/30/2025 in #showcase
Clean up your seeds with Generators and AshOps
1 replies
AEAsh Elixir
Created by ZachDaniel on 9/20/2023 in #showcase
Ash Framework: Better Together
10 replies
AEAsh Elixir
Created by ZachDaniel on 4/18/2023 in #showcase
Model your Domain, Derive the Rest
1 replies
AEAsh Elixir
Created by ZachDaniel on 4/18/2023 in #showcase
Ash Primer: Migration Generator
8 replies
AEAsh Elixir
Created by ZachDaniel on 4/7/2023 in #showcase
Ash Primer: Calculations
https://www.youtube.com/watch?v=oxaqpDlI-Hk The first video of a series called Ash Primers has been released. Still a work in progress on recording/editing, but I'd rather ship something that isn't perfect than ship nothing at all 😆.
4 replies
AEAsh Elixir
Created by ZachDaniel on 2/28/2023 in #showcase
Model your Domain, Derive the Rest
I'll be giving the first iteration of a talk entitled "Ash is your Application" at the Jacksonville Elixir meetup next month. Its hybrid, so feel free to attend virtual https://www.meetup.com/jax-ex/events/291931851/
7 replies
AEAsh Elixir
Created by ZachDaniel on 2/7/2023 in #support
Issues with sorting on `first` aggregate
actions do
defaults [:create, :read, :update, :destroy]

read :published do
prepare fn query, _context ->
query
|> Ash.Query.filter(air_dates.status == :published)
|> Ash.Query.sort(latest_air_date: :desc)
|> Ash.Query.limit(10)
end

# pagination do
# offset? true
# default_limit 10
# countable :by_default
# end
end
end
...
preparations do
prepare fn query, _context ->
query
|> Ash.Query.load([:thumb_url, :video_file_url, :video_poster_url])
end
end

aggregates do
first :latest_air_date, :air_dates, :start do
sort start: :desc
end
end
actions do
defaults [:create, :read, :update, :destroy]

read :published do
prepare fn query, _context ->
query
|> Ash.Query.filter(air_dates.status == :published)
|> Ash.Query.sort(latest_air_date: :desc)
|> Ash.Query.limit(10)
end

# pagination do
# offset? true
# default_limit 10
# countable :by_default
# end
end
end
...
preparations do
prepare fn query, _context ->
query
|> Ash.Query.load([:thumb_url, :video_file_url, :video_poster_url])
end
end

aggregates do
first :latest_air_date, :air_dates, :start do
sort start: :desc
end
end
Originally posted by @l00ker , moved to a support thread
67 replies
AEAsh Elixir
Created by ZachDaniel on 2/5/2023 in #support
Custom Statements
Hi I have a question How do I do the following
execute "CREATE EXTENSION IF NOT EXISTS btree_gist;"

execute """
ALTER TABLE appointments
ADD CONSTRAINT overlapping_appointments
EXCLUDE USING GIST (
doctor_id WITH =,
tsrange("from", "until", '[)') WITH &&
) WHERE (NOT canceled);
"""
end
execute "CREATE EXTENSION IF NOT EXISTS btree_gist;"

execute """
ALTER TABLE appointments
ADD CONSTRAINT overlapping_appointments
EXCLUDE USING GIST (
doctor_id WITH =,
tsrange("from", "until", '[)') WITH &&
) WHERE (NOT canceled);
"""
end
I tried to check the custom statements , it seems I am missing some import perhaps Ash.DataLayer.Info This message was copied from the ash-hq channel by user @sriky27
6 replies
AEAsh Elixir
Created by ZachDaniel on 1/28/2023 in #showcase
Part 2 of LiveView Master collab is up!
8 replies
AEAsh Elixir
Created by ZachDaniel on 1/26/2023 in #showcase
Is Ash Framework the Real Deal for Elixir Devs?
11 replies
AEAsh Elixir
Created by ZachDaniel on 1/21/2023 in #showcase
Coinbits V2
From @chef : We just released Coinbits 2.0 yesterday. It's been a long 6 months of building and I'm proud to announce that we're fully built on Ash, AshPostgres, and AshGraphql. No live view here, still on legacy React 😉 Reposting from the archived channel. Original message link: https://discord.com/channels/711271361523351632/1012029207343288422/1044616660377681960
5 replies