Module: Yogurt::QueryContainer::InterfacesAndUnionsHaveTypename

Extended by:
T::Sig
Includes:
Kernel
Defined in:
lib/yogurt/query_container/interfaces_and_unions_have_typename.rb

Defined Under Namespace

Classes: Error

Instance Method Summary collapse

Instance Method Details

#on_field(node, parent) ⇒ Object



53
54
55
# File 'lib/yogurt/query_container/interfaces_and_unions_have_typename.rb', line 53

def on_field(node, parent)
  super if validate_interface_union_includes_typename(node, T.unsafe(self).field_definition.type.unwrap)
end

#on_operation_definition(node, parent) ⇒ Object



58
59
60
# File 'lib/yogurt/query_container/interfaces_and_unions_have_typename.rb', line 58

def on_operation_definition(node, parent)
  super if validate_interface_union_includes_typename(node, T.unsafe(self).type_definition)
end