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.
Joinmanage_relationship argument not relating primary key to resource
Calculations Using Relationships
:unread_count
calculation on the Channel
. It would take the current user as the actor and find the associated member of the channel, use that :last_read_at
time to filter down the messages associated with the channel to ones that has a :created_at
after that time, and count them.
I'm having a hard time figuring out how to do that based on the examples.
What I think I want is something like:...Ash Admin dependency for newest liveview
Because your app depends on ash_admin ~> 0.8.1 which depends on phoenix_live_view ~> 0.18.3, phoenix_live_view ~> 0.18.3 is required.
So, because your app depends on phoenix_live_view ~> 0.19.0, version solving failed.
Because your app depends on ash_admin ~> 0.8.1 which depends on phoenix_live_view ~> 0.18.3, phoenix_live_view ~> 0.18.3 is required.
So, because your app depends on phoenix_live_view ~> 0.19.0, version solving failed.
Ambiguous Call during Compile because of Extension
How not to select fields when loading a resource
How to put the same value at multiple places in a fragment?
fragment("SELECT my_custom_function(1/<rate>, 2/<rate>, 3*<rate>) FROM lookup_values WHERE id=<id>", rate, id)
?
Today, I will need to do fragment("SELECT my_custom_function(1/?, 2/?, 3*?) FROM lookup_values WHERE id=?", rate, rate, rate, id)
...Actor not passed to `read` action after `create` action
:create
action and :read
action, and an AshGraphql mutation that calls :create
. The resource has a module-based policy that requires the actor have a certain "role". When I test the mutation, the policy allows the actor to perform the :create
, but when it checks the :read
action that happens at the end of the mutation, the actor passed to the policy is nil
.
What makes this especially confusing is that I have other resources that are set up the same way, and they don't have this nil
actor problem.
I'll post my code in the comments below....Manual relationship with recursive CTE
action argument default to another argument?
Possible to use relationships for Identity?
How should module calculations return errors?
Broadcasting pubsub update notifications only if the resource has been changed?
Ash.Query.load not loading nested relationship?
How best to model partial updates of optional attributes?
Polymorphic Self References
How to create a second resource on a create action?
How to set belongs_to on in a form
Policy authorizer not applying to read action
How to pass args to Api.read
Spendable.Api.read!(BudgetAllocationTemplate, action: :list, search: socket.assigns[:search])
Spendable.Api.read!(BudgetAllocationTemplate, action: :list, search: socket.assigns[:search])