We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ac4bc9 commit fad02ceCopy full SHA for fad02ce
1 file changed
lib/ash/actions/read/read.ex
@@ -1308,7 +1308,7 @@ defmodule Ash.Actions.Read do
1308
pkey = Ash.Resource.Info.primary_key(original_query.resource)
1309
# we have to assume they are all there and in the same order. Not my
1310
# favorite thing, but no way around it in the short term.
1311
- if Enum.empty?(pkey) || missing_pkeys? do
+ if Ash.Resource.Info.embedded?(original_query.resource) || Enum.empty?(pkey) || missing_pkeys? do
1312
Enum.zip_with([data, data_with_selected], fn [record, match] ->
1313
record
1314
|> Map.merge(Map.take(match, fields_from_data))
0 commit comments