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
Ash Paper Trail, destroy action
Detecting nested form changes
Guidance on Dynamic Filtering, Sorting, and Pagination
open_api_spex spec declaration with ash_json_api
nil
descriptions, summaries, etc. open_api_spex
documentation suggests using macros like operation/2
to describe my API. i've searched ash_json_api
docs for some information but to no success. is there a way to do describe my domains' / resources' routes like so in ash_json_api
?Changeset truncates Time, DateTime and NaiveDateTime to whole seconds
Policy breakdowns for fields
Ash.ForbiddenField
in a record returned by a read action?log_policy_breakdowns
but not retrieved from a forbidden field.