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.
JoinIdentity for user email will not work during upsert
User
resource:
```elixir
identities do
identity :unique_email, [:email] do...Ash.Changeset.change_attribute before or after action
Add nonce and/or OIDC to AshAuthentication
Alternative approach for aggregate of aggregate with group by
Many To Many Relationship Example
How to Ash-idiomatically get all unique values of an attribute across all records?
App.Api.Item
is a resource with an attribute :name
.
How can I go from the set of all records of Item (App.Api.Item |> App.Api.read!()
) to a list of all unique values of the :name
attribute in the most idiomatic way?...Filling encrypted fields during user registration
Why my policy is always blocking the function call?
confirm
(ash authentication email confirmation action) action when the actor confirmed_at
is nil
.
To do that, I added:
```elixir...Can I fetch a resource with `get :id`?
id
I use this code:
```elixir
[post] = MyApp.Post
|> Ash.Query.filter(id == "bc38fcb3-080d-46ba-834d-5as58d689sda")...Nested aggregates
App.Api
that, combined, construct/define an Item
.
* Category
: has a :code
attribute
* Family
: belongs_to
a Category (and also has a :name
, etc.)
* Variant
: belongs_to
a Variant, has a :code
attribute...Module Calculations: Concat example leads to Enum.map_join/3 error (separator argument missing)
Another calculations query
How do you invalidate/persist tokens with ash_authentication?
ash_authentication
?...Add additional inputs to registration in AshAuthPhoenix
How to run :request_password_reset_with_password action?
request_password_reset_with_password
action. it expects a changeset of an actual record.
But that would mean that I would need an changeset of the user I want to reset the password.
How would I get that user if the whole point of doing the reset is because the user is not able to login to that user?...Timezone handling in Ash
Virtual field in Ash attribute
Create has_one relationship with flexible resource type
Any example of an ASH app running distributed?
How can I delete a record by id?
Helpdesk.Api.destroy_support_ticket ticket
Helpdesk.Api.destroy_support_ticket ticket