We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b17bfa + e350409 commit 89eafc9Copy full SHA for 89eafc9
3 files changed
lib/graphql/schema/list.rb
@@ -19,7 +19,7 @@ def list?
19
end
20
21
def to_type_signature
22
- "[#{@of_type.to_type_signature}]"
+ @type_signature ||= -"[#{@of_type.to_type_signature}]"
23
24
25
# This is for introspection, where it's expected the name will be `null`
lib/graphql/schema/non_null.rb
@@ -24,7 +24,7 @@ def list?
26
27
- "#{@of_type.to_type_signature}!"
+ @type_signature ||= -"#{@of_type.to_type_signature}!"
28
29
30
def inspect
lib/graphql/schema/wrapper.rb
@@ -13,7 +13,13 @@ def initialize(of_type)
13
14
15
def unwrap
16
- @of_type.unwrap
+ @unwrapped ||= @of_type.unwrap
17
+ end
18
+
+ def freeze
+ unwrap
+ to_type_signature
+ super
def ==(other)
0 commit comments