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


But from the graphql resolver

 def resolve

I get this error

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs