Ash FrameworkAF
Ash Framework3y ago
5 replies
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
    ...


If this isn't enough to repro, I can come up with a test or example!
Was this page helpful?