Skip to content

Commit

Permalink
fix: accepted attributes don't have to be public?
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed May 11, 2024
1 parent 761a60f commit 896d764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resource/resource.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,7 @@ defmodule AshGraphql.Resource do

true ->
resource
|> Ash.Resource.Info.public_attributes()
|> Ash.Resource.Info.attributes()
|> Enum.filter(fn attribute ->
AshGraphql.Resource.Info.show_field?(resource, attribute.name) &&
attribute.name in action.accept && attribute.writable? &&
Expand Down

0 comments on commit 896d764

Please sign in to comment.