We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51d7c88 commit 6c2bbe1Copy full SHA for 6c2bbe1
lib/graphql/schema/member/has_fields.rb
@@ -12,6 +12,11 @@ def self.extended(child_class)
12
super
13
end
14
15
+ # Create a module which will have instance methods for implementing fields.
16
+ # These will be `super` methods for fields in interfaces, objects and mutations.
17
+ # Use an instance variable on the class instead of a constant
18
+ # so that module namespaces won't be an issue. (If we used constants,
19
+ # `child_class::DefaultResolve` might find a constant from an included module.)
20
def add_default_resolve_module(child_class)
21
if child_class.instance_variable_get(:@_default_resolve)
22
# This can happen when an object implements an interface,
0 commit comments