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.
JoinUpdating array embeds
All values in the original array are destroyed, and all maps in the new array are used to create new records.
All values in the original array are destroyed, and all maps in the new array are used to create new records.
id
s. Is there a way to do the same using Ash?...AshPhoenix.Form for an Ash.Flow module instead of Ash.Resource
Ash.Flow
. Is it possible to initialize an AshPhoenix.Form
object for an Ash.Flow
module instead of the usual Ash.Resource
?Use Policy.SimpleCheck inside an expr
Action macro with Ash queries
Ash.Query
macros to it, then it stops working. The obvious reason should be that the macro is not finding require Ash.Query
but I can't find a way to add it to make it work. This is what I have right now:
```elixir...Where and how do I write my business logic?
Book
and Category
resource. What I want to happen is to create a bunch of Category
records every time a Book
is created.
Normally, I would write this business logic in a context/module somewhere and then call it inside the save handle_event in my liveview after a successful Book
record creation....Set up testing

:one_of constraint for type string
Auth0 and AshAuthentication
Building can? function that supports filter checks
can
functions, which I am using in the above scenario. However I will need extra functionality so that in addition, the filter checks are taken into account. The reason is that some of my action policies use relates_to_actor_via. For the reads I suppose I could actually perform the read and use the result. However for :update there are also filter checks and I can't use that strategy.
Any thoughts on how best to approach this? I have started looking into it however quickly got lost in the engine / request modules....Make some calculation action specific
, where: [action_is(:create)]
or something like this.
I tried the same for calculations but it doesn't seem like it has the same functionality.
So, if I want to do a calculation that is only relevant for a specific action, is there some way to do it?...Exposing data of the managed relationship
manage_relationship
but I need to return the generated id for Resource2
and I have not found a way to get that information. Is it possible to access the return values from the action called by manage_relationship
? If they are accesible I could put them into metadataUse `action/1` with more than one action in policies
Ash Relationships with existing Ecto Repos
Adding new field in default Ash_Authentication_Phoenix Registration Page.
Aggregate first the full resource instead of some field
How to fetch the actor inside validations?
Compile error: module Any is reserved and cannot be defined
When to use validations or policies
Fly.io deployment with ash_authentication
ash_authentication
but I get an error at this line:
signing_secret(Application.compile_env(:todoish, TodoishWeb.Endpoint)[:secret_key_base])
signing_secret(Application.compile_env(:todoish, TodoishWeb.Endpoint)[:secret_key_base])
AshGraphql generated mutations are bypassing schema middleware