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.
JoinSlow pages ... due to too many load of data...
Getting protocol Phoenix.HTML.Safe not implemented with "Ash Phoenix"
Working with Transactions
How to ergonomically add/remove to an array of embedded resource in graphql
Using manage_relationship with bulk_create
manage_relationship with a bulk create. I want to be able to create a bunch of "child" resources in one request while also providing attributes to create their "parent" resources at the same time. In a normal create request, I can create a child and parent at the same time, but in a bulk create, it seems like it's trying to insert the parent resource twice.
Child resource:
```
actions do...Ash.Type.Tuple Enumerable not implemented
:tuple defined like this:
```elixir
attribute :model, :tuple do
constraints [...Correct Way to Display Spark.Error.DslError?
Spark.Error.DslError show up in the right place.
I followed patterns from core Ash code (like default_accept.ex and verify_identities.ex), and also looked at extensions like Ash Cloak. Here's what I did in my verifier:
```elixir...Auth flow
Complex Custom Actions
Calculating average number of sessions per user
receiving an Ash Error and don't understand why
Igniter stuck in loop on brand new install
many_to_many in ash
Question about somewhat unusual join relationship
User, Opinion and Event. Opinion is a join resource between User and Event.
The tricky part that I want to support is for Opinion to have nullable user_id, where an opinion without a user is a default opinion. And when we query opinions/events for a user we want to include default opinions for events which the user has not specified/created their own opinion. Sounds like something for sort based on user_id and distinct based on event_id. And this combo does work if we query things for a single user but if we load things for multiple users there appears a problem - read action is used to read all users opinions together. Because of that it results in removal of a default opinion if any one of requested users has its own opinion (distinct gets applied to whole query not per user). Which means that if one user has its own opinion about an event then other users, who do not have their own opinion, lose their join link (default one).
I'm interested if it is possible to make this work without using manual relationship....Book seed issue: Tunez.Music.Artist.read had no matching bulk strategy that could be used
Framework Error - Assumption failed: Invalid return from calculation
Assumption failed: Invalid return from calculation, expected a value, got %Ash.NotLoaded{}...I want to load related records inside "relationships" key
How to use Ash.Notifier.PubSub filter?
Error message in a grapqhl mutation
AshGraphql.Resource.Action structs but you have Mutation structs instead - so it might be defined in your schema incorrectlyReturn only selected fields