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])
Many_to_many on email destination
Invalid association, not an ecto schema
``
==> spendable
Compiling 5 files (.ex)
warning: invalid association
budget` in schema Spendable.BudgetAllocation: associated module Spendable.Budget is not an Ecto schema...Can't add form with auto forms
Attempted to add a form at path: [:budget_allocations], but no
create_action was configured.
here is my action
```...Expected at most one result but got ...