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.
JoinAshPhoenix.Form fails in submit without errors with embedded resources
Issues using Ash.Type.Union
Validate not nil, min and max for a string
What's the best way to learn Ash?
Unexpected token during mix ash_phoenix.gen.live
WeightType
resource that I want to create a LiveView for. When running the Ash Phoenix LiveView generator I'm getting the following error and having trouble tracking down where it comes from so I can fix it. Help?
``
mix ash_phoenix.gen.live Mitochex.Workouts Mitochex.Workouts.WeightType
Would you like to name your actor? For example:
current_user`. If you choose no, we will not add any actor logic. [Yn] n...How To: Return a computed relationship in a read.
Post
has a 'top comment'. So when i'm fetching a Post or list of Posts, I will like it to include the top comment like so: post.top_comment.
I'm currently trying to use a preparation to load this relationship but not sure how to execute it on the Ash.Query side of things. Any ideas here would be appreciated!...sort many_to_many
Resource MyApp.Accounts.FriendLink is not present in any known Ash.Api module.
Implementing token inactivity timeout with automatic expiry extend
token_lifetime
, and would now like to add a way to log the user out after a period of inactivity, and also extend their session expiry whenever they make a request to keep them logged in beyond the initial expiry time. I have realised that this may be at odds with using JWTs as the token, as they are effectively tamper proof....How to: DateTime validation with compare/2
Using code_interface args
ManualRead not resolving in graphQL
AshAuthentication missing notifications when running Expunger
How to effiently add thousands+ of entries to `many_to_many` relations
Control
s and Requirement
s with a many_to_many
relation (ControlRequirement
). I can set those using manage_relationship
... however I now have the use case where I need to add new relations one by one ... thousands of them. My understanding is that manage_relationship with :append_and_remove
expects a list ... so I'd need to fetch the list, add an item, remove duplicates and then provide this to manage_relationship, correct? I assume `:ap...(Postgrex.Error) ERROR 42P18 (indeterminate_datatype) could not determine data type of parameter $1
Ash.Query.filter(fragment("task_id ~* '?\\d+'", ^prefix))
The Ecto doc suggests explicitly defining type withtype(^prefix, :string)
but I'm not sure how it's supposed to fit in as an Ash.Query. expression....InvalidFilterValue for read action
%Ash.Error.Query.InvalidFilterValue
```elixir
read :for_organisation do
argument(:organisation_id, :integer) do...Use without data layers
How To: Atomic update with a where clause
Adding Postgres NULLS LAST to an Ash prepare build sort
:asc
, :desc
, etc:
```elixir...How To: Exclusion constraints in AshPostgres
``elixir
If you would like to stop this constraint violation from raising an
exception and instead add it as an error to your changeset, please
call
exclusion_constraint/3` on your changeset with the constraint...