class GraphQL::Introspection::EntryPoints
Public Class Methods
Source
# File lib/graphql/introspection/entry_points.rb, line 11 def self.__schema(context) # Apply wrapping manually since this field isn't wrapped by instrumentation schema = context.schema schema_type = schema.introspection_system.types["__Schema"] schema_type.wrap(schema, context) end
Source
# File lib/graphql/introspection/entry_points.rb, line 26 def self.__type(context, name:) if context.types.reachable_type?(name) && (type = context.types.type(name)) type elsif (type = context.schema.extra_types.find { |t| t.graphql_name == name }) type else nil end end
Public Instance Methods
Source
# File lib/graphql/introspection/entry_points.rb, line 18 def __schema self.class.__schema(context) end
Source
# File lib/graphql/introspection/entry_points.rb, line 22 def __type(name:) self.class.__type(context, name: name) end