We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36efd73 commit 439ef03Copy full SHA for 439ef03
1 file changed
lib/graphql/internal_representation/node.rb
@@ -12,8 +12,17 @@ class NoTypedChildren
12
CHILDREN = [].freeze
13
def dup; self; end
14
def any?; false; end
15
+ def none?; true; end
16
def [](key); CHILDREN; end
17
def each; end
18
+ # Compatibility for when this was an Array:
19
+ def method_missing(method_name, *args, &block)
20
+ if CHILDREN.respond_to?(method_name)
21
+ CHILDREN.send(method_name, *args, &block)
22
+ else
23
+ raise NotImplementedError
24
+ end
25
26
end
27
NO_TYPED_CHILDREN = NoTypedChildren.new
28
0 commit comments