lib/graphql/schema/field/connection_extension.rb in graphql-2.0.8 vs lib/graphql/schema/field/connection_extension.rb in graphql-2.0.9

- old
+ new

@@ -45,10 +45,13 @@ value.arguments ||= original_arguments # rubocop:disable Development/ContextIsPassedCop -- unrelated .arguments method value.field ||= field if field.has_max_page_size? && !value.has_max_page_size_override? value.max_page_size = field.max_page_size end + if field.has_default_page_size? && !value.has_default_page_size_override? + value.default_page_size = field.default_page_size + end if context.schema.new_connections? && (custom_t = context.schema.connections.edge_class_for_field(@field)) value.edge_class = custom_t end value elsif context.schema.new_connections? @@ -62,9 +65,10 @@ connection_class.new( value, original_arguments, field: field, max_page_size: field.max_page_size, + default_page_size: field.default_page_size, parent: object, context: context, ) end end