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 +4 -4
- data/lib/inigorb/inigo-darwin-amd64.dylib +0 -0
- data/lib/inigorb/inigo-darwin-arm64.dylib +0 -0
- data/lib/inigorb/inigo-linux-amd64.so +0 -0
- data/lib/inigorb/inigo-linux-arm64.so +0 -0
- data/lib/inigorb/inigo-windows-amd64.dll +0 -0
- data/lib/inigorb/inigo-windows-arm64.dll +0 -0
- data/lib/inigorb/tracer.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8331056e78fa660141c7688b9b3070b98d05c6113c8fa9ae187a17ea928e038a
|
4
|
+
data.tar.gz: 80dbbaa6c70248742cf73f15ed4bf5825fbdf0e43c4a4be7fedf9812438c34f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b40b77c907bb61d8dcb4e2593ccc06bc0ea43f603d4d24528fb697f4a36f217bfbff6b2b0a9960b965351c3446fa6801854b46a66936a9e5dc0127e1da5241e
|
7
|
+
data.tar.gz: 5624aa9079c3483bbdca92db440ca336f0b18620dc894ebf34115c3705d6b5020307cc54ff0fa2b7ab417635e320a7b1864db805cc659463d4efa5b178f0cdef
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/inigorb/tracer.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2024-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|