inigorb 0.28.5 → 0.29.4

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: 1e8a004dcd749886d4a48645b606cccc589a9b32c3ea93e4bf2b677f1f8c7320
4
- data.tar.gz: 83de71d1d30614bc1894f21b3527918e50dbd7422cc6849a4a379c5e0cfebe10
3
+ metadata.gz: 6eb96c42168977d65c282f532d82a2103b514f8e5db67645d37cadf8b1fc342b
4
+ data.tar.gz: e5857fd45e0d1186f24c8fefc1ab2e808d6db7ce3181a127dbe4a4a996f8f4a2
5
5
  SHA512:
6
- metadata.gz: 912b7eb024b8a6e2b7bfd4d08af08351e1074d8c7eda03189c5078b89d3594f5b39770327c088e238dd5aff3b2d02059b539938fbb2992544a961ba90de1f489
7
- data.tar.gz: 7b1b3b1469079cb3482a6fb74df3d6d0834d42c51cb3be6789e638a767b88c336fd2e93e4580d469309e634b6da1abaf260942f7bfe492e902a352d7b22105ef
6
+ metadata.gz: e77fcbdf6b76e8ea5aaaac4d93d6c9030d907adade0069dc342e708dab309452c3e9cf86e95dec6ef75bc0cff4dbebd47f28478261cd1429f91e40dbe5eec31e
7
+ data.tar.gz: 25aa4858fdd36e10c20f81724ca36765da17465a0b58b7a548b15d2230e17a61b506dbeab3382e36061953a381879c92f9af261551a01a43aa1c7271ca6aff05
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.28.5
4
+ version: 0.29.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inigo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-09 00:00:00.000000000 Z
11
+ date: 2024-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt