Ash Framework
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.
JoinAsh Framework
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.
JoinHow to (temporarily) disable data layer entirely
AshPostgres, and then to "comment out" it and swap with an in-memory (non actually persistent) alternative, e.g. Ash.DataLayer.Ets (even better if any accidental entry gets deleted in 24hrs).
Use case: I just want to start and deploy a simple static HTML page that requires no logic, nor authentication. In the near future, as I develop features, I want to put them back in. But in the meantime, I want to deploy my app without actually spending $38 per month for a postgres db I would not hit (yes, I'm using fly.io).
If I'm tackling this problem wrong, or if you suggest a better workflow, I'm all ears!...Good way to (atomically?) persist a file when creating a record?
Warning on compare to `nil` in short-circuited query
Ash policies fail when they shouldn't
Reducing some code duplication in Ash enums
How can I sum all the expenses.amount across all categories
Ash policies breakdown not showing help_text
Distinguished if the user was created or if they already existed with a magic link
How to run custom resource extension before validators
Ash.Resource extension and having some issues I don't know how to solve. This is my simple extension so far:
```ex...Can I aggregate over a calculated field?
Seed Resources with many-to-many relationships
Enum.at(foos, foo_index) to create the correct references.
I also had to make the relationships on the many-to-many public so that I can create them.
Anywho, thanks for the help!...Regex validation error
validate match(:code, "^[A-Za-z0-9]+$/")
validate match(:code, "^[A-Za-z0-9]+$/")
Generated attributes on update?
GENERATED ALWAYS) which can change on updates. generated? true only appears to affect inserts.
I'm guessing there is a toggle somewhere to handle this maybe? Even if there's just a way to tell an update action, "Hey, definitely get the return value on the update for this one," that would also be perfect. I didn't see any obvious way in the DSLs but... that doesn't mean much, lol....(ArgumentError) could not fetch application environment :ash_domains for application :test
How to allow only one action and forbid all others by default in policy?
Resource actions - Transaction
:create actions where I have SQLite3 as the datalayer.
I have both before_action, manage_relatonship and after_action and I was expecting the whole create action to fail and the transaction to rollback if any of the changes failed. But this does not seem to be the case..?...graphql subscription triggered by association
Sorting on the first relationship in an aggregate
:some_many_to_one_table that got the phone number:
```elixir...many to many relationship + PhoenixForm + checkboxes
AshAuthentication failures with custom LiveViews