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.
JoinFilter a change by action_type
create
, update
and destroy
.
Looking at the Ash.Resource.Validation.Builtins
I can only see the action_is/1
option which allows me to specific an action by name, but I can't find any action_type/1
options or something similar.
Is that not possible?...Use change manage_relationship without argument in create action.
User
which has a has_one
relationship with another resource called ImpersonatePermissions
. When I create a new user, I want to also create a new in the impersonate_permissions table. To do that, I believe that I need to use manager_relationship
.
I was able to make this work with a custom change function:
```elixir...Multi-Location + Multi-Tenant Read Replica

Multiple filters giving unexpected result
Create relationship with itself
User
resource and I add a feature that an user can create another user, meaning that I want to add a field called created_by
and created_by_id
which is also an User
...Migration generator splitting composite primary keys
many_to_many
relationships like so:
```elixir
relationships do
belongs_to :resource_a, App.ResourceA, primary_key?: true, allow_nil?: false
belongs_to :resource_b, App.ResourceB, primary_key?: true, allow_nil?: false...Reading Tenant ETS resources returns empty array
Ash-Postgres and uuidv7
no FunctionClause matching when loading calculation
guide for using Ash.Flow and multi step user flow with retries.
I was looking at Ash.Flow and the
step
DSL feels what i Might need.
Here is the Use case in detail: ...Resource's DSL "metric" actions
count/1
I've to call api module directly.
What about the idea of a new kind of action supported by ash resource's DSL for defining resource's metrics methods in a declarative way?
...Refresh "calculations" during form.validate
`mix ash_postgres.generate_migrations` key `:table` not found
Identity on two attributes causing errors
Sorting with calculation result giver "Argument value is required" error
`AshGraphql.Error` not implemented
``
[warning]
fb1756e7-6a42-43c1-a11c-9758d305ac78`: AshGraphql.Error not implemented for error:
** (ErlangError) Erlang error: {%Ash.Error.Forbidden{errors: [%Ash.Error.Forbidden.Policy{scenarios: [], facts: %{false => false, true => true......Ash.Query fragment inside a select?
Patterns for Propagating Tenants to LiveComponents/LiveViews?
ash_authentication.phoenix.livesession
. I am grabbing the tenant from session
in a LiveView to be added to reads
. For handle_events, and all LiveComponents
which talk to the DB, I assume I'll need to pass the tenant in via assigns? Feels like it could get a bit messy, especially for LiveComponents. Does any...How to make simple select count with Ash
MyApi.count(MyResource)
but on the docs that method belongs to the ambigous Ash.Filter.ShadowApi
module.
...GraphQL Subscriptions