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.
JoinSuggestion broken with latest ElixirSense
GraphQL NewType Non-null?
allow_nil?
s into constraints
key. Am I holding it wrong?
```elixir
defmodule MyApp.Types.LatLng do
use Ash.Type.NewType,...
Filtering by enum attribute
status
. Im using AshJsonApi to pass in a filter: filter[status]=active,incomplete
. This doesnt seem to work out of the box so I implemented a preperation where I do this:
```elixir
defp filter_by_status(query) do
case Ash.Changeset.get_argument(query, :filter) do
%{"status" => statuses} ->...Notifications warning in migration
[warning] Missed 1 notifications in action GF.WebComponents.WebSite.update
in the logs when running a new migration that calls an :update
action on a resource. I know very little about Ash notifications and how they work. I don't want to disable them globally, because they might be useful in the future. How can I prevent this warning from appearing when the migration runs?
```
12:39:17.050 [warning] Missed 1 notifications in action GF.WebComponents.WebSite.update.
...Is there a way to define dsl for new type of attribute?
type
and default
to uuid_primary_key
. But wanted to venture into making a small spark extension that adds ulid_primary_key
.
With my naive approach I wrote something like that:
```elixir
defmodule Ash.Ulid.Extension do...Duplicate input types for GraphQL
Create action commits changes even if return fails due to field policy
fields
field policy inside my rbac rules. Because of that, when I run the create action from that resource, it will fail with this error when returning the value:
```...How can I do a 'like' query or similarity search?
Is the structure from the auto-generated graph filters from some spec?
filter
and sort
a list inside a graph query.
I'm still kind of new to graph. Is this design/structure specific to any single frontend library like Rely or Apollo?...
Nested aggregates and calculations
use embedded fields inside expr
Ash JSON API is showing an error when following tutorial
ash_json_api
extension, I got the following error:
```
Compiling 18 files (.ex)
error: function plug/2 imported from both Phoenix.Router and Plug.Builder, call is ambiguous...Trying to better understand filter in the context of AshGraph
JSON-API And Calculations
Applying constraints to embedded union types
How to: Keyset pagination in AshJsonApi
** (KeyError) key :metadata not found in: #SomeAshResource..
** (KeyError) key :metadata not found in: #SomeAshResource..
DISTINCT ON LEAST() GREATEST()
Ash.Query.filter creates filter with OR condition instead of AND
Ash.Query.filter
function documentation explicitly says that a filter will be added with the AND
condition, but it seems that this is not the case when fragments
is used.
For example, if I do this:
```elixir...Generated filter expression is incorrect - BUG
Filter by struct keys in a read action