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....no route found for POST /admin
Identities split into multiple resources doesn't seem to work
User
and Customer
.
In my User
resource I have these identities:
```elixir...Create SQL queries for migrations not related to a resource
custom_statements
but outside any resource, probably in a custom type or repo level.
To be more specific, I'm porting this type https://github.com/elixirmoney/money/blob/v1.12.2/lib/money/ecto/composite_type.ex into a Ash.Type.
For that type to work, I need to run execute "CREATE TYPE public.money_with_currency AS (amount integer, currency varchar(3))"
in a migration file to actually create the custom type inside postgres....Atom fields will save upcase atoms as downcase
Using Ecto preload to load relationships in one query
pattern to use for embedded resources with variable fields?
How to remove id as input option on create actions
Allow writing values but not reading them back in graphql
read :non_sensitive_info do
prepare build(deselect: [:cacertfile])
end
read :non_sensitive_info do
prepare build(deselect: [:cacertfile])
end
hide_fields
also removes them from create/update...Arbitrary queries, like Ecto.Query can do?
Postgres Queries have wrong where clause
SELECT c0."id", c0."first_name", c0."last_name", c0."title", c0."legal_entity_name", c0."is_legal_entity" FROM "contact" AS c0 WHERE (false) []
SELECT c0."id", c0."first_name", c0."last_name", c0."title", c0."legal_entity_name", c0."is_legal_entity" FROM "contact" AS c0 WHERE (false) []
Use ash_authentication with Clerk
How to manage belongs_to with phoenix form
Don't show existing value of form field