inigorb 0.29.2 → 0.29.5

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
  SHA256:
3
- metadata.gz: 95f45240011a5b320118e7f21be391276e034a3965498002a90d33ac7b5ea431
4
- data.tar.gz: 112db5e1c3113b1d9176970d34af384124c59c8b92896a0080c4fc54b4d4f26f
3
+ metadata.gz: 8331056e78fa660141c7688b9b3070b98d05c6113c8fa9ae187a17ea928e038a
4
+ data.tar.gz: 80dbbaa6c70248742cf73f15ed4bf5825fbdf0e43c4a4be7fedf9812438c34f4
5
5
  SHA512:
6
- metadata.gz: d98c191b7cde27f099de02aa01866c2f2d193b327b648edb7f969e642894778af0144901cf1ca0f6d36b0169f6e944de17549c84faedf4eb2be509338ca651f5
7
- data.tar.gz: d993ea9aba9685c122a218c35b58b88034090b0b3e5cc3cb124b4e2dbcae7ddd688a542e8998379c8840dc552c2f856fc94338a6003f7721d3bd3b2bef4c0bbe
6
+ metadata.gz: 2b40b77c907bb61d8dcb4e2593ccc06bc0ea43f603d4d24528fb697f4a36f217bfbff6b2b0a9960b965351c3446fa6801854b46a66936a9e5dc0127e1da5241e
7
+ data.tar.gz: 5624aa9079c3483bbdca92db440ca336f0b18620dc894ebf34115c3705d6b5020307cc54ff0fa2b7ab417635e320a7b1864db805cc659463d4efa5b178f0cdef
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -76,6 +76,12 @@ module Inigo
76
76
 
77
77
  gReq['operationName'] = query.operation_name if query.operation_name && query.operation_name != ''
78
78
  gReq['variables'] = query.variables.to_h if query.variables
79
+ # when operation registry is enabled and query string is absent query.variables is empty property as
80
+ # there is an error on query that query string is missing.
81
+ # query.variables is basically a method that provides a hash of variables provided and query default variables.
82
+ # in case with operation registry we don't have a string and should use only provided vars.
83
+ gReq['variables'] = query.provided_variables if query.query_string.nil? || query.query_string.empty?
84
+ gReq['extensions'] = query.context[:extensions] if query.context[:extensions]
79
85
 
80
86
  q = Query.new(self.class.instance, JSON.dump(gReq))
81
87
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inigorb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.2
4
+ version: 0.29.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inigo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-08 00:00:00.000000000 Z
11
+ date: 2024-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt