class GraphQL::Introspection::SchemaType

Public Instance Methods

directives() click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 38
def directives
  @context.warden.directives
end
mutation_type() click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 30
def mutation_type
  permitted_root_type("mutation")
end
query_type() click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 26
def query_type
  permitted_root_type("query")
end
schema_description() click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 18
def schema_description
  context.schema.description
end
subscription_type() click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 34
def subscription_type
  permitted_root_type("subscription")
end
types() click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 22
def types
  @context.warden.reachable_types.sort_by(&:graphql_name)
end

Private Instance Methods

permitted_root_type(op_type) click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 44
def permitted_root_type(op_type)
  @context.warden.root_type_for_operation(op_type)
end