class GraphQL::Introspection::SchemaType

def directives

def directives
  @context.warden.directives
end

def mutation_type

def mutation_type
  permitted_root_type("mutation")
end

def permitted_root_type(op_type)

def permitted_root_type(op_type)
  @context.warden.root_type_for_operation(op_type)
end

def query_type

def query_type
  permitted_root_type("query")
end

def schema_description

def schema_description
  context.schema.description
end

def subscription_type

def subscription_type
  permitted_root_type("subscription")
end

def types

def types
  @context.warden.reachable_types.sort_by(&:graphql_name)
end