Rails pagination with mongoid, graphql, using the Kaminari gem

Hi there I am trying to use pagination in a Rails, mongoid, graphql project. I have setup the Kaminari gem to work with mongoid and from the console I see that it works properly at least I can do this

Module::Class.page(3)

But from the graphql resolver

 def resolve
   Workflow::Order.page(3)
 end

I get this error

NoMethodError: undefined method `page' for Workflow::Order:Class