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
Code:
def list_course(_parent, args, _resolution) do Absinthe.Relay.Connection.from_query( Courses.Course, &Composure.Repo.all/1, args, max: 5 ) end
After I add the max option, the code works correctly, but dialyzer gives a warning:
max
The call 'Elixir.Absinthe.Relay.Connection':from_query('Elixir.Composure.Courses.Course',fun(() -> any()),args@1::any(),[{'max',5},...]) will never return since the success typing is (any(),any(),#{'after':='nil' | integer(), 'before':='nil' | integer(), 'first':='nil' | integer(), 'last':='nil' | integer()},[{'count',non_neg_integer()} | {'has_next_page',boolean()} | {'has_previous_page',boolean()}]) -> {'error',<<:64,:_*8>>} | {'ok',#{'edges':=[map()], 'page_info':=#{'end_cursor':=binary(), 'has_next_page':=boolean(), 'has_previous_page':=boolean(), 'start_cursor':=binary()}}} and the contract is ('Elixir.Ecto.Queryable':t(),fun(('Elixir.Ecto.Queryable':t()) -> [term()]),'Elixir.Absinthe.Relay.Connection.Options':t(),from_query_opts()) -> {'ok',map()} | {'error',any()}
Maybe the type is wrong?
The text was updated successfully, but these errors were encountered:
Update Absinthe.Relay.Connection.from_query spec
Absinthe.Relay.Connection.from_query
c50d232
The `max` keyword was missing. It will fix dialer errors as described in absinthe-graphql#133.
Update Absinthe.Relay.Connection.from_query spec (#146)
643a9c4
The `max` keyword was missing. It will fix dialer errors as described in #133.
No branches or pull requests
Code:
After I add the
max
option, the code works correctly, but dialyzer gives a warning:Maybe the type is wrong?
The text was updated successfully, but these errors were encountered: