Manage relationship argument question
How to read resource without actions
MyApp.Accounts.Token
using iex, but I'm getting NoPrimaryAction
error.
Is it possible to inspect resources without defining read action?
Is there a way to convert it to Ecto.Schema
, so I can use Ecto.Query
?
...Json Api
Association not working. Is 'property' a reserved name?
graphql
prepare build(load: [:thumbnail_raw, :thumbnail])
where thumbnail_raw is the binary field in the db and thumbnail is a calculated field. I also define the load
callback in the calculation to ensure :thumbnail_raw
is loaded before the encoding happens in the body of the calc - i.e. there are two places where I force :thumbnail_raw
to be loaded. The calc works fine everywhere else, but returns nil when access via graphql. I have IO.inspected the records sent to the calculation and the key I have asked to be loaded isn't loaded.
Versions are a little behind, but I've checked the commit logs for changes in these areas and can't see anything:
```
{:ash, "~> 2.4.0"},...Use of managed_relationship not clear
The most recent attempt: create :new do argument :company, :uuid do...
Polymorphic Embedded Resources?
Identity not creating unique index
AshPhoenix form handling
How to login with a generated Magic Link in Phoenix (ash_authentication ash_phoenix_authentication)
phx.routes
returns, where there's no room to put a token.
```elixir
auth_path * /auth/user/magic_link/request ExampleWeb.AuthController {:user, :magic_link, :request}...Prevent action's changes from being run on `AshPhoenix.Form.validate`
A
that has a filed let's say capacity
, belongs_to relationship to B
resource and create
action that has a change LoadDefaultFromRelationship
. This change basically fetches the capacity
from B
resource if none was given in the create
action params for A
.
The problem with such approach is that every time we invoke the AshPhoenix.Form.validate
it makes a query to the database for this default value. Is there any way to prevent this change being run on AshPhoenix.Form.validate
but still apply on create
action?...submit_errors: [id: {"has already been taken", []}],
for_create
form is submitted, I get this error. Assuming the id
it's referring to is "form", I'm not sure why it thinks it has been taken.
```
api: MyApp.Tweets,
method: "post",...Aggregates still not working correctly
Could not relate to actor, as no actor was found (and :allow_nil? is false
change relate_actor(:author)
, I get this error. What causes no actor to be found despite that there is a logged in user?
```
submit_errors: [
author: {"Could not relate to actor, as no actor was found (and :allow_nil? is false)",...Support for Postgres generated columns
Support GIST indexes in `custom_indexes` code block
custom_indexes
?
Right now I'm using custom_statements
for it:
```elixir...Self-referencing a Resource
MyApp.Secrets must implement the 'AshAuthentication.Secret` behaviour.
`bulk_create` requiring `upsert_fields` with `upsert?: true`
bulk_create
:
Docs: "If not set, the action's upsert_fields is used, and if that is not set, then any fields not being set to defaults are written."
https://hexdocs.pm/ash/Ash.Api.html#c:bulk_create/4
...AshPhoenix.Form does not implement the Access behaviour
