class GraphQL::Introspection::EntryPoints

Public Instance Methods

__schema() click to toggle source
# File lib/graphql/introspection/entry_points.rb, line 10
def __schema
  # Apply wrapping manually since this field isn't wrapped by instrumentation
  schema = @context.query.schema
  schema_type = schema.introspection_system.types["__Schema"]
  schema_type.authorized_new(schema, @context)
end
__type(name:) click to toggle source
# File lib/graphql/introspection/entry_points.rb, line 17
def __type(name:)
  context.warden.reachable_type?(name) ? context.warden.get_type(name) : nil
end