You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to make this work with resolver-based queries today, which doesn't seem to be possible at the moment.
moduleResolversclassFruits < BaseResolvergraphql_name'FruitsResolver'# Schema being dumped just fine, but self-documentation containing neither# `collection` nor `metadata` with any of its subfields... instead, graphql-ruby's# cursor-based pagination fields are presenttypeTypes::Fruit::Fields.connection_type,null: falseargument:page,Integer,required: falseargument:limit,Integer,required: falsedefresolve(page: nil,limit: nil)# with Fruit being the ActiveRecord model and the kaminari-activerecord Gem# installed, this still doesn't seem to be a Kaminari object (lacking the methods,# anyways)
::Fruit.all.page(page).per(limit)endendend
Am I simply doing it wrong? If not, what would a PR to make it work have to do?
The text was updated successfully, but these errors were encountered:
I've tried to make this work with resolver-based queries today, which doesn't seem to be possible at the moment.
Am I simply doing it wrong? If not, what would a PR to make it work have to do?
The text was updated successfully, but these errors were encountered: