graphql-rails-api 0.9.8 → 0.9.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: acf07a5b93e2cd63fd09cd0cd8081a5ee75f89e085f48405dfa197e5684f4b72
4
- data.tar.gz: 7bb866a32483d31ba22a7283915484154b91f0720dab5fbb6b4477e298b8c670
3
+ metadata.gz: 8e25a943a7609957c2c0123c9efcb11a27b3e64f9aa37aac30d56f82708701e0
4
+ data.tar.gz: 72659ad6d0ff3153c06e05a2c21372e5c5d35638080ebfa3fd4a593f0648da9e
5
5
  SHA512:
6
- metadata.gz: 2d413ded07452606a26e58d23e7b6e000cf48dfcf990e7b6d68329587ac5e19a0aa7ad6d336fb193ac90a67cf4a2d63573b5dbc9add3a804f05cb26df5ad26a4
7
- data.tar.gz: 030c84889982ffc7dc9bbe498079aa418851c314b299f1bec681b56cd6cfc7f12660ddcb24c99d42bbf4fc956a3ecb8f843c57fd039391d3d4f419f52bae8304
6
+ metadata.gz: 969746c3f12d8af1f56f3b7128cfb9159b7ca7dd8bad48d0087251559e81ca744b3f2f2d86c945cd6e51acf6be70b457a2f872dcc0a080629d2241509a32faa5
7
+ data.tar.gz: b300ba36e35a32764551722d6d85d790a6242c528edbae0d54272f3857a557354b2c3ca3faa4127ff783626e9f2792f0d5c106f95581d7a894bcc8d35e18854e
@@ -451,6 +451,10 @@ module Graphql
451
451
  end
452
452
 
453
453
  def irep_node(name, paginated: false)
454
+ until @context.query.lookahead.ast_nodes.first.children[@context[:query_index]].is_a?(GraphQL::Language::Nodes::Field)
455
+ @context[:query_index] += 1
456
+ end
457
+
454
458
  children = @context.query.lookahead.ast_nodes.first.children[@context[:query_index]].children
455
459
  result = if paginated
456
460
  children.find { |n| n.name == "data" }.children
@@ -1,7 +1,7 @@
1
1
  module Graphql
2
2
  module Rails
3
3
  module Api
4
- VERSION = "0.9.8".freeze
4
+ VERSION = "0.9.81".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-rails-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.81
5
5
  platform: ruby
6
6
  authors:
7
7
  - poilon
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  requirements: []
114
- rubygems_version: 3.1.2
114
+ rubygems_version: 3.3.7
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: Graphql rails api framework to create easily graphql api with rails