Skip to content

Commit 54150b2

Browse files
committed
chore: small improvement inspect/errors on ecto changeset
1 parent ae881a4 commit 54150b2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/data_layer.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,7 @@ defmodule AshPostgres.DataLayer do
12201220
case Map.get(record, relationship.name) do
12211221
%Ash.NotLoaded{} ->
12221222
%Ecto.Association.NotLoaded{
1223+
__field__: relationship.name,
12231224
__cardinality__: relationship.cardinality
12241225
}
12251226

lib/repo.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ defmodule AshPostgres.Repo do
183183
case Map.get(record, relationship.name) do
184184
%Ash.NotLoaded{} ->
185185
%Ecto.Association.NotLoaded{
186+
__field__: relationship.name,
186187
__cardinality__: relationship.cardinality
187188
}
188189

0 commit comments

Comments
 (0)