graphql-preview 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphql-preview/member_from_path.rb +4 -4
- data/lib/graphql-preview/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f776f673b6e49488b7dc1d7e084b5f0db26a61fe
|
4
|
+
data.tar.gz: 76f1a9da05f10d2b6811d44d76c01fb1b49c9981
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3ba889288790d70f731eb0fb6974f92808178e9bee5c0b0f92cbbfe3690294088b07010e113fad891f45d31204927a4e6261ae0fa3021dd667006abd00cf531
|
7
|
+
data.tar.gz: cfc1768f142bef1f959f390eb0a675f5a91c6297af8509cbe0a9eaeccfa76905daec2b028c11ded78ffca79a0346cf1c934eae66e5981f9242c06fe8e72fd3c2
|
@@ -70,15 +70,15 @@ module GraphQLPreview
|
|
70
70
|
|
71
71
|
def find_in_fields_type(type, kind:, path:)
|
72
72
|
field_name = path.shift
|
73
|
-
|
73
|
+
instrumented_field = schema.get_field(type, field_name)
|
74
74
|
|
75
|
-
if
|
75
|
+
if instrumented_field.nil?
|
76
76
|
raise MemberNotFoundError, "Could not find field `#{field_name}` on #{kind} type `#{type}`."
|
77
77
|
end
|
78
78
|
|
79
|
-
return
|
79
|
+
return instrumented_field if path.empty?
|
80
80
|
|
81
|
-
find_in_field(
|
81
|
+
find_in_field(instrumented_field, path: path)
|
82
82
|
end
|
83
83
|
|
84
84
|
def find_in_field(field, path:)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-preview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen J. Torikian
|
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
|
-
rubygems_version: 2.6.
|
157
|
+
rubygems_version: 2.6.8
|
158
158
|
signing_key:
|
159
159
|
specification_version: 4
|
160
160
|
summary: Provide a system for toggling parts of a GraphQL schema on.
|