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.
JoinUse without data layers
How To: Atomic update with a where clause
Adding Postgres NULLS LAST to an Ash prepare build sort
:asc, :desc, etc:
```elixir...How To: Exclusion constraints in AshPostgres
``elixir
If you would like to stop this constraint violation from raising an
exception and instead add it as an error to your changeset, please
call exclusion_constraint/3` on your changeset with the constraint...Ash Authentication TOTP
Using pgsodium with Ash
execute("SECURITY LABEL FOR pgsodium ON COLUMN table.column IS 'ENCRYPT WITH KEY COLUMN key_id NONCE nonce ASSOCIATED association_id'") for each column I want to get encrypted.
Would custom_statements in the Ash resource be the place to do this?...AshOban trigger `read_metadata` passed to action as argument?
Is there a good way to version string documents in ash?
set action argument in form
for_create of the form.
Unfortunately i can't manage to find a way to set the argument in the form before it calls the action...White labeling the Ash Admin
Migration from MySQL or use thereof?
How to make 'actor' available in nested forms' action
Ash.set_actor(current_user) in the mount function of a liveview that contains a nested form. The create/update actions of the main (posts) and sub form (comments), both of which includes change fn changeset, %{actor: actor}, the variable actor passes the proper user map for post , but nil for comment`. Also tried passing actor like below, but it didn't help either. Is there anything else I need to do to make it available in the nested forms' action as well?
```
AshPhoenix.Form.for_update(post, :update,
api: MyPosts,
actor: socket.assigns.current_user,...st_distance vs <-> in ash_geo for nearest neighbor search/filter (knn)
ash_geo and attempting to implement a knn filter, as described here:
https://postgis.net/workshops/postgis-intro/knn.html
Unlike a distance search, the “nearest neighbour” search doesn’t include any measurement restricting how far away candidate geometries might be, features of any distance away will be accepted, as long as they are the nearest....
How to sort on a postgres regex?
GraphQL API fails if custom type is not allowed via a field_policy
null, all the other fields normally (assuming they are not forbidden as-well) and an error in the errors list telling that this field is forbidden.
But, if I try the same with a custom type, then I just get the full result as null:
```json...Postgres reference with non-"id" primary keys
How to use fragments and not built-in predicates in Ash.Filter keyword list syntax?
Ash.Filter keyword list syntax with built-in predicates, how can I use it with fragments or non-built-in predicates?
For example, this filter:
```elixir...parse filter with fields from another resource relationship
Ash.Filter.parse/2 to generate filters using the list syntax, for example:
```elixir
Ash.Filter.parse(Template, [
or: [...Ash.Resource.ManualRead And Filters
Ash.Resource.ManualRead. Reading the data is not a problem, but as the REST API is way less capable for filtering, I would like to run the returned data through the Ash filters I applied to the query. I mapped the returned data already to the Ash resource and now have an array of these resources. But how can I now apply the filters from the query? That’s what read!() normally would do, but calling that would lead to...