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.
JoinMany_to_many on email destination
Invalid association, not an ecto schema
``
==> spendable
Compiling 5 files (.ex)
warning: invalid association
budget` in schema Spendable.BudgetAllocation: associated module Spendable.Budget is not an Ecto schema...Can't add form with auto forms
Attempted to add a form at path: [:budget_allocations], but no
create_action was configured.
here is my action
```...Expected at most one result but got ...
CRDT and Ash
How to return custom errors in a after_transaction call?
How to use relationship id in a `get_by` read action
relationship required
Action argument shows up as JsonString in graphql schema
argument :credentials, {:array, Credential}
change manage_relationship(:credentials, type: :direct_control)
argument :credentials, {:array, Credential}
change manage_relationship(:credentials, type: :direct_control)
many_to_many with non-default attribute not preloading...
Game
, which is actually for a table called assets
, so in the join table one of the attributes is asset_id
and not game_id
.
The join table is called playlist_entries
...Looking for an example of an attribute-based custom filter check I once saw in an error message.
Keep in mind that, for create actions, many expr/1 checks won’t make sense, and may return false when you wouldn’t expect. Expression (and other filter) policies apply to “a synthesized result” of applying the action, so related values won’t be available. For this reason, you may end up wanting to use other checks that are built for working against changesets, or only simple attribute-based filter checks. Custom checks may also be warranted here.
Keep in mind that, for create actions, many expr/1 checks won’t make sense, and may return false when you wouldn’t expect. Expression (and other filter) policies apply to “a synthesized result” of applying the action, so related values won’t be available. For this reason, you may end up wanting to use other checks that are built for working against changesets, or only simple attribute-based filter checks. Custom checks may also be warranted here.
Hooking `manage_relationship`
manage_relationship
, e.g. for an extension? I'm looking to get notified any time a relationship is added or removed.Composing filter expressions
not
) a complex expression that I use in filters.
I have a complex filter expression that looks like this:
```elixir
read :get_processed_for_visit do...AshAuthentication error when trying to use password hashing change in seed action
Can't use `actor` on aggregates
adding for update to a read action
after_action
block that performs a select using a read action. I'd like to turn that select into a "SELECT FOR UPDATE" - is that possible?JSON-API Related() Seems Broken
custom step inside of map step in a flow.
How can I retrieve attributes from a resource record
Ash
record?
```elixir
record = App.Model |> Ash.Query.for_read(:last) |> App.read_one!
...Updating Spark to 1.1.17 breaks Ash.Flow transaction DSL