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.
Joinash json patch with composite primary key
Auxiliary Resources OK?
?filter[tags.name]=elixir
....How to paginate related data in json API?
http://localhost:4000/api/v1/client/{id}/data
the data is not paginated.
Is this a bug or am I missing something? Here's the relevant code
```elixir...AshAI json schema usage
Ash Ai connected with external MCP Servers
the more tests I write, the more deadlocks I run into
ExUnit.start(max_cases: 2)
and shrink the config/test.ex
App.Repo pool_size.
I feel like these are bandaids and there's something fundamentally wrong with my test suite. Any tips/tricks for things to look for? Some anti-patterns in my generators.ex functions?
```bash...email: StreamData.repeatedly(fn -> "email#{System.unique_integer()}@example.com" end)
Use magic_link for both invitations and sign-in
create
action on my user resource which is limited to actor_attribute_equals(:role, :admin)
, and
2. Have a read
action for the sign in logic.
...Argument in many to many filter
exposed?
.
When reading clients through a read action, I want to provide an arg that says to load only the exposed related Data of a Client or the non exposed or both. So I've set an argument
on the read action, but now how do I access it in the filter
expr on the many to many relationship?...Is it safe to log AuthController failures or can it leak private info?
How to get DataLayer transformer to run after optional Extension
def after
and def before
to order transformers--install igniter option clarification
--install foo,bar --install baz,quux
equivalent to --install foo,bar,baz,quux
?Enforce each item is unique in attribute array
[:en, :en]
.
```...Use policies to limit allowed values of Enum in create action
what is the possiblity that ash code gen does not generate migration
newbie: incorrect code in AshPostgres examples?
How to access property of a join resource in filter?
filter
, how do I select only those related resources whose boolean is true or false in the join_through
resource?parent()
expression is for https://hexdocs.pm/ash/expressions.html#many-to-many-relationships. I didn't know I had to give a custom name to my join_relationship
or otherwise use the default _join_assoc
name when accessing this fielderror in creating new project
Custom queries in migration
Potential bug with relationship `parent` references
parent
in relationship filters. My setup looks something like this:
1. A resource called GuideLevel
with a has_many relationship with no_attributes? true
and a filter. This relationship is called ancestors
and uses an AshPostgres.Ltree column to get the ancestors of the current record, although idt the ltree behavior is relevant to the bug. The filter
expression looks like: filter expr(fragment("? @> ? AND ? < ?", level, parent(level), nlevel, parent(nlevel)))
. Note that this references an nlevel
calculation which just calculates the nlevel
of the ltree column: calculate :nlevel, :integer, expr(fragment("nlevel(?)", level))
...Testing `Ash.Resource.Change` in Isolation
Ash.Resource.Change
and it's occurring to me it shouldn't be too difficult to test those modules in isolation.
If I have an Ash.Resource.Change
that just runs an after_transaction
hook, how do I trigger that function directly?...