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.
JoinHow to make fields optional for graphql api?
hide_fields is used, is there a way I can allow a field to be nil for the Graphql API when it is not allowed to be nil as an attribute?Understanding value_is_key option when managing relationships
many_to_many exception after updating Ash
2.6.31. I updated to 2.11.8 today and an existing many_to_many association that I had is now raising an exception. Did something change?
Here are my resources:
```elixir...How to programatically add a policy to a resource?
manage_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