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
Ash Graphql "create" mutation with upsert? true – how to use ID as argument for upsert identity?
create
mutation within which upsert? true
and upsert_identity :id
. I have an action corresponding to this (code below). Can I get id
to be an acceptable input to this mutation? Thanks!
``` mutations do
create :upsert_patient, :upsert_patient, upsert?: true, upsert_identity: :id
end...AshAuthentication identity :token_context
Why there is no `Ash.Changeset.around_transaction`?
around_transaction
function in Ash.Changeset
. We already have a around_action
option, but that one runs inside a transaction, meaning that I can't use it if I wan't to add something to the DB regardless if the action itself fails or not.
I know that there is a before_transaction
and after_transaction
, but depending on what I'm doing this would not work.
Just to give a more concrete example....