AE
Ash Elixir•2y ago
skander

AshGraphql erroring with key :run not found

I think this is related to the new generic actions changes, but I ran into this after upgrading and pointing to the latest commit of ash_graphql:
[error] 0f997ea0-3e42-480e-a425-9d39d18f271f: Exception raised while resolving query.

** (KeyError) key :run not found in: %Ash.Resource.Actions.Read{arguments: [], description: nil, filter: nil, get_by: nil, get?: false, manual: nil, metadata: [], modify_query: nil, name: :read, pagination: false, preparations: [], primary?: true, touches_resources: [], transaction?: false, type: :read}

(ash 2.14.17) lib/ash/actions/action.ex:21: Ash.Actions.Action.run/3
(ash_graphql 0.26.1) lib/graphql/resolver.ex:41: AshGraphql.Graphql.Resolver.resolve/2
(absinthe 1.7.5) lib/absinthe/phase/document/execution/resolution.ex:234: Absinthe.Phase.Document.Execution.Resolution.reduce_resolution/1
...
[error] 0f997ea0-3e42-480e-a425-9d39d18f271f: Exception raised while resolving query.

** (KeyError) key :run not found in: %Ash.Resource.Actions.Read{arguments: [], description: nil, filter: nil, get_by: nil, get?: false, manual: nil, metadata: [], modify_query: nil, name: :read, pagination: false, preparations: [], primary?: true, touches_resources: [], transaction?: false, type: :read}

(ash 2.14.17) lib/ash/actions/action.ex:21: Ash.Actions.Action.run/3
(ash_graphql 0.26.1) lib/graphql/resolver.ex:41: AshGraphql.Graphql.Resolver.resolve/2
(absinthe 1.7.5) lib/absinthe/phase/document/execution/resolution.ex:234: Absinthe.Phase.Document.Execution.Resolution.reduce_resolution/1
...
If this isn't enough to repro, I can come up with a test or example!
3 Replies
ZachDaniel
ZachDaniel•2y ago
🤔 I just pushed something up to main that might help
skander
skanderOP•2y ago
I'd also upgraded from Ash 2.14.141 to 2.14.17. But trying now Success!
ZachDaniel
ZachDaniel•2y ago
new version should go out from CI soon

Did you find this page helpful?