graphql-hive 0.1.0 → 0.1.1
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 +4 -4
- data/.gitignore +1 -1
- data/README.md +1 -1
- data/lib/graphql-hive/usage_reporter.rb +5 -3
- data/lib/graphql-hive/version.rb +1 -1
- 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: 07376f19ffa9683acd9915b1110922fcf802e21eef2b98be11bdaaf9fac30ba7
|
|
4
|
+
data.tar.gz: 18979f799df3a8edd50244c9d9b1c62895b25fbeccd8e9f1245a552da6b6878b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b36fb877de650e2df40ea5b34cf5f62eb69930fe40123b4bf24036aead8c6c377714c0fa4a5605bb8db6d182596b3bb95c176cf57254a1029139223e62d2946c
|
|
7
|
+
data.tar.gz: 67663762c7c1f853ebb651d84a4ddba6aabf7cda456a755de614e5e2f5ad3d7cd0a5eec0536377f9ac1a94def1609cbab7426725488bf3322eb8b21ecae1ba5b
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -58,7 +58,7 @@ end
|
|
|
58
58
|
|
|
59
59
|
The `reporting` configuration is required to push your GraphQL Schema to the Hive registry.
|
|
60
60
|
Doing so will help better detect breaking changes and more upcoming features.
|
|
61
|
-
If you only want to use the operations monitoring, replace the `
|
|
61
|
+
If you only want to use the operations monitoring, replace the `reporting` option with the following `report_schema: false`.
|
|
62
62
|
|
|
63
63
|
<br/>
|
|
64
64
|
|
|
@@ -23,6 +23,7 @@ module GraphQL
|
|
|
23
23
|
def initialize(options, client)
|
|
24
24
|
@@instance = self
|
|
25
25
|
|
|
26
|
+
@options = options
|
|
26
27
|
@buffer_size = options[:buffer_size]
|
|
27
28
|
@logger = options[:logger]
|
|
28
29
|
@client = client
|
|
@@ -113,9 +114,10 @@ module GraphQL
|
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
if results[0]
|
|
118
|
+
context = results[0].query.context
|
|
119
|
+
operation_record[:metadata] = { client: @options[:client_info].call(context) } if @options[:client_info]
|
|
120
|
+
end
|
|
119
121
|
|
|
120
122
|
report[:map][operation_map_key] = {
|
|
121
123
|
fields: fields.to_a,
|
data/lib/graphql-hive/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graphql-hive
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Charly POLY
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-06-
|
|
11
|
+
date: 2022-06-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: graphql
|