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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4dead6d1a5f54b189170b3d4da9cb77d4f31a9d3
4
- data.tar.gz: 400454ff941ed04a48bf3ada71a45527c2f3764a
3
+ metadata.gz: f776f673b6e49488b7dc1d7e084b5f0db26a61fe
4
+ data.tar.gz: 76f1a9da05f10d2b6811d44d76c01fb1b49c9981
5
5
  SHA512:
6
- metadata.gz: f18cea3be7ff3f17632e4a3cc302473025974f0cc72759f9d8971878076f901539ff116573b7b59d289e9d59899fbd5628f7b18f1d27e75e0c0a94eee2b9eb64
7
- data.tar.gz: 6e6f0b25d10af928191be4e1ea08c01fe9f078db98121aa247d4552a3038585fa2fa6125085dcacb8ed8e46a900c76ff40ada8b58f0bbb58a4fceba577b464ad
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
- field = type.fields[field_name]
73
+ instrumented_field = schema.get_field(type, field_name)
74
74
 
75
- if field.nil?
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 field if path.empty?
79
+ return instrumented_field if path.empty?
80
80
 
81
- find_in_field(field, path: path)
81
+ find_in_field(instrumented_field, path: path)
82
82
  end
83
83
 
84
84
  def find_in_field(field, path:)
@@ -1,3 +1,3 @@
1
1
  module GraphQLPreview
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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.7
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.13
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.