graphiti_gql 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/graphiti_gql/schema/fields/to_many.rb +6 -3
- data/lib/graphiti_gql/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 544e1209bfdf6e48d70a76490edec46bc04639d75d91bae2a35ab95ea8fb4530
|
4
|
+
data.tar.gz: '0688127e3a2ab48d4bdd3f7f70a4efd544dd4bb4c9a952c0c4302ede86c1c24a'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67b52a3241814fd821cf23982ed55e02c1e0e171d41c5c3bb54cdcd53e04ea28a13fab327d86a5756dee7499f88d163316b93cfebf730a4681ab54a627693f9b
|
7
|
+
data.tar.gz: ce6ab0de40b33e0750f4eb33c63249c91a6b478503cce6fc0cc92081b18190346a9e4190027b940020f69459c40094a963b3a0d1e440e63ed4a2f47e1bd904cd
|
data/Gemfile.lock
CHANGED
@@ -39,16 +39,19 @@ module GraphitiGql
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def find_or_build_connection
|
42
|
+
registered_parent = Schema.registry.get(@sideload.parent_resource.class)
|
43
|
+
parent_name = registered_parent[:type].graphql_name
|
44
|
+
name = "#{parent_name}To#{@sideload_type.graphql_name}Connection"
|
45
|
+
return Schema.registry[name][:type] if Schema.registry[name]
|
46
|
+
|
42
47
|
if customized_edge?
|
43
48
|
prior = @sideload_type.connection_type
|
44
49
|
klass = Class.new(prior)
|
45
|
-
registered_parent = Schema.registry.get(@sideload.parent_resource.class)
|
46
|
-
parent_name = registered_parent[:type].graphql_name
|
47
|
-
name = "#{parent_name}To#{@sideload_type.graphql_name}Connection"
|
48
50
|
klass.graphql_name(name)
|
49
51
|
edge_type_class = build_edge_type_class(@sideload_type)
|
50
52
|
edge_type_class.node_type(prior.node_type)
|
51
53
|
klass.edge_type(edge_type_class)
|
54
|
+
Schema.registry[name] = { type: klass }
|
52
55
|
klass
|
53
56
|
else
|
54
57
|
@sideload_type.connection_type
|
data/lib/graphiti_gql/version.rb
CHANGED
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiti_gql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2022-07-11 00:00:00.000000000 Z
|
@@ -108,7 +108,7 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '7.0'
|
111
|
-
description:
|
111
|
+
description:
|
112
112
|
email:
|
113
113
|
- richmolj@gmail.com
|
114
114
|
executables: []
|
@@ -170,7 +170,7 @@ licenses:
|
|
170
170
|
- MIT
|
171
171
|
metadata:
|
172
172
|
homepage_uri: https://www.graphiti.dev
|
173
|
-
post_install_message:
|
173
|
+
post_install_message:
|
174
174
|
rdoc_options: []
|
175
175
|
require_paths:
|
176
176
|
- lib
|
@@ -185,8 +185,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
- !ruby/object:Gem::Version
|
186
186
|
version: '0'
|
187
187
|
requirements: []
|
188
|
-
rubygems_version: 3.3.
|
189
|
-
signing_key:
|
188
|
+
rubygems_version: 3.0.3.1
|
189
|
+
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: GraphQL support for Graphiti
|
192
192
|
test_files: []
|