lib/rails/graphql/source.rb
def attach_fields!
          refresh_schemas!
          schemas.each_value do |schema|
            Helpers::WithSchemaFields::SCHEMA_FIELD_TYPES.keys.each do |type|
              list = public_send("#{type}_fields")
              next if list.empty?

              list.each_value do |field|
                next if schema.has_field?(type, field)
                schema.add_proxy_field(type, field)
              end
            end
          end
        end
# Attach all defined schema fields into the schemas using the namespaces
# configured for the source
Attach all defined schema fields into the schemas using the namespaces
configured for the source
Attach all defined schema fields into the schemas using the namespaces configured for the source
def attach_fields!
          refresh_schemas!
          schemas.each_value do |schema|
            Helpers::WithSchemaFields::SCHEMA_FIELD_TYPES.keys.each do |type|
              list = public_send("#{type}_fields")
              next if list.empty?
              list.each_value do |field|
                next if schema.has_field?(type, field)
                schema.add_proxy_field(type, field)
              end
            end
          end
        end
def attach_fields! refresh_schemas! schemas . each_value do | schema | Helpers :: WithSchemaFields :: SCHEMA_FIELD_TYPES . keys . each do | type | list = public_send ( "#{type}_fields" ) next if list . empty? list . each_value do | field | next if schema . has_field? ( type , field ) schema . add_proxy_field ( type , field ) end end end end
Attach all defined schema fields into the schemas using the namespaces
configured for the source
Attach all defined schema fields into the schemas using the namespaces configured for the source