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.
JoinCalling policy modules "directly"
Resource.my_calculation?
I have this:
```
defmodule MyApp.Ash.Accounts.User.Authorizers.UserIsMemberOfOrganization do...select fields from nested associations
users and user_profiles, with a one-to-one relationship. I know it might sound a bit silly, but I don't always need the information from the profile.
Back to the point: I created a read action for searching that looks like this:
```elixir...ash sqlite "get your installer" failed
Relationship-Based Policies
team_member.ex I’ve defined:
```elixir
read :list_team_members do...Full text search on a given field in ash expression?
%{question_text: "filter keyword that should exist"}
I am composing queries like
```
filter_expr = Ash.Expr.expr(contains(^key , ^value))...How to Compute Permissions
Ash.can? and code interfaces have can_<name>? generatedAuthenticating an SPA via graphql
is AshPyro maintained?
Flaky Ash Generator
children which allowed me to generate child entity types at the same time as the parent. Because the maps were empty, they were failing validation. once I started supplying a default value of an empty list, the flakiness seems to have gone away.'fanning out' pub sub broadcasts?
notify option) and broadcast it yourselfError in action when policy is added
changes in generic action
ash_double_entry different currency
AshPhoenix.Form.submit() works as expected. I added additional accounts with a different currency, EUR, and this fails with:
* ** (ArgumentError) Cannot subtract two monies with different currencies. Received :EUR and :USD.
* ** (ArgumentError) Cannot subtract two monies with different currencies. Received :EUR and :USD.
Is there a way to load a nested parent relationship on a resource?
Any expected issues when upgrading to otp 28?
[AshAuthentication] Unable to redefine User.id as a v7 uuid
user.ex and redefine id as having the type uuid_v7_primary_key
You will get the runtime error:
** (EXIT from #PID<0.94.0>) an exception was raised:...main of AshAuthenticationNot creating v7 uuids for ids
id attribute:
```...Error: `key :manual not found in: nil` with create_query using graphql
inputs_for not working when I do manage_relationship in Ash.Changeset.before_action
change manage_relationship(:beds, type: :create) in the action, inputs_for works.
But when I put the manage_relationship in before_action, it doesn't work, e.g.:
```...AshEvents: AshPostgres.DataLayer.Info.repo/1 is undefined
ash_postrgres . Closing this until it's a problem. For now it's just a warning.