823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
|
# File 'lib/graphiti/errors.rb', line 823
def message
<<~MSG
It looks like you are requesting pagination of a sideload, but there are > 1 parents.
This is not supported. In other words, you can do
/employees/1?include=positions&page[positions][size]=2
But not
/employees?include=positions&page[positions][size]=2
This is a limitation of most datastores; the same issue exists in ActiveRecord.
Consider using a named relationship instead, e.g. 'has_one :top_comment'
MSG
end
|