lib/graphql/schema/field/connection_extension.rb in graphql-1.10.5 vs lib/graphql/schema/field/connection_extension.rb in graphql-1.10.6

- old
+ new

@@ -33,10 +33,12 @@ value.context ||= context value.first_value ||= arguments[:first] value.after_value ||= arguments[:after] value.last_value ||= arguments[:last] value.before_value ||= arguments[:before] - value.max_page_size ||= field.max_page_size + if field.has_max_page_size? && !value.has_max_page_size_override? + value.max_page_size = field.max_page_size + end value elsif context.schema.new_connections? wrappers = context.namespace(:connections)[:all_wrappers] ||= context.schema.connections.all_wrappers context.schema.connections.wrap(field, value, arguments, context, wrappers: wrappers) else