Exception: Graphiti::Errors::UnsupportedPagination

Inherits:
Base
  • Object
show all
Defined in:
lib/graphiti/errors.rb

Instance Method Summary collapse

Instance Method Details

#messageObject



707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
# File 'lib/graphiti/errors.rb', line 707

def message
  "    It looks like you are requesting pagination of a sideload, but there are > 1 parents.\n\n    This is not supported. In other words, you can do\n\n    /employees/1?include=positions&page[positions][size]=2\n\n    But not\n\n    /employees?include=positions&page[positions][size]=2\n\n    This is a limitation of most datastores; the same issue exists in ActiveRecord.\n\n    Consider using a named relationship instead, e.g. 'has_one :top_comment'\n  MSG\nend\n"