graphql 1.13.8 → 1.13.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphql/schema/directive.rb +4 -0
- data/lib/graphql/schema/field.rb +8 -5
- data/lib/graphql/schema/input_object.rb +1 -1
- data/lib/graphql/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d96eacd39201c81802bc7a525b5ff5392e918582ef7814a14c5f650d82fa1ca
|
4
|
+
data.tar.gz: 45f26d9425c711c1d91026837f900fa172a511258a95ae1ba9356c76fcf905bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc31be3568df7a167eda2ae0c81ae05999cc34de47a5a0aeae082795b7ae4750d4b1b17c744e5f6100cf4b9039e51371f0fb82c37cd1ceb72febf1bb2ef898fd
|
7
|
+
data.tar.gz: 723da375b4060fc8d348a7b84261fe2c3ed6f06c32ad346feaeef7ec1dee11a91666f91a2d38c0f750c0a2373114f9a4f7a9d4f0775e28bac72b3e5c954a2dc4
|
data/lib/graphql/schema/field.rb
CHANGED
@@ -428,11 +428,14 @@ module GraphQL
|
|
428
428
|
elsif connection?
|
429
429
|
arguments = query.arguments_for(nodes.first, self)
|
430
430
|
max_possible_page_size = nil
|
431
|
-
if arguments[
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
431
|
+
if arguments.respond_to?(:[]) # It might have been an error
|
432
|
+
if arguments[:first]
|
433
|
+
max_possible_page_size = arguments[:first]
|
434
|
+
end
|
435
|
+
|
436
|
+
if arguments[:last] && (max_possible_page_size.nil? || arguments[:last] > max_possible_page_size)
|
437
|
+
max_possible_page_size = arguments[:last]
|
438
|
+
end
|
436
439
|
end
|
437
440
|
|
438
441
|
if max_possible_page_size.nil?
|
@@ -81,7 +81,7 @@ module GraphQL
|
|
81
81
|
|
82
82
|
def self.authorized?(obj, value, ctx)
|
83
83
|
# Authorize each argument (but this doesn't apply if `prepare` is implemented):
|
84
|
-
if value.
|
84
|
+
if value.respond_to?(:key?)
|
85
85
|
arguments(ctx).each do |_name, input_obj_arg|
|
86
86
|
input_obj_arg = input_obj_arg.type_class
|
87
87
|
if value.key?(input_obj_arg.keyword) &&
|
data/lib/graphql/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.
|
4
|
+
version: 1.13.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Mosolgo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: benchmark-ips
|
@@ -707,7 +707,7 @@ metadata:
|
|
707
707
|
source_code_uri: https://github.com/rmosolgo/graphql-ruby
|
708
708
|
bug_tracker_uri: https://github.com/rmosolgo/graphql-ruby/issues
|
709
709
|
mailing_list_uri: https://tinyletter.com/graphql-ruby
|
710
|
-
post_install_message:
|
710
|
+
post_install_message:
|
711
711
|
rdoc_options: []
|
712
712
|
require_paths:
|
713
713
|
- lib
|
@@ -722,8 +722,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
722
722
|
- !ruby/object:Gem::Version
|
723
723
|
version: '0'
|
724
724
|
requirements: []
|
725
|
-
rubygems_version: 3.
|
726
|
-
signing_key:
|
725
|
+
rubygems_version: 3.1.6
|
726
|
+
signing_key:
|
727
727
|
specification_version: 4
|
728
728
|
summary: A GraphQL language and runtime for Ruby
|
729
729
|
test_files: []
|