We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mix dializer to recognize "subscribed" as a valid return key for Absinthe.run/3
mix dializer
"subscribed"
Absinthe.run/3
lib/subscription.ex:69:pattern_match The pattern can never match the type. Pattern: {:ok, %{<<115, 117, 98, 115, 99, 114, 105, 98, 101, 100>> => _topic}} Type: {:error, binary()} | {:ok, %{ :data => nil | %{binary() => atom() | binary() | [map()] | number() | map()}, :errors => [ %{ :message => binary(), :locations => [%{:column => integer(), :line => pos_integer()}] } ] }}
This is the Absinthe.run_result() type which doesn't expect to return a "subscribed" key as described in the Understanding Subscriptions Guide.
Absinthe.run_result()
@spec run(t()) :: {:ok, String.t()} def run(%__MODULE__{ runner_args: %{schema: schema, query: query, context: context, variables: variables} }) do {:ok, %{"subscribed" => topic}} = Absinthe.run(query, schema, context: context, variables: variables ) {:ok, topic} end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Expected behavior
mix dializer
to recognize"subscribed"
as a valid return key forAbsinthe.run/3
Actual behavior
This is the
Absinthe.run_result()
type which doesn't expect to return a "subscribed" key as described in the Understanding Subscriptions Guide.Relevant Schema/Middleware Code
The text was updated successfully, but these errors were encountered: