class GraphQL::Introspection::SchemaType
Public Instance Methods
directives()
click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 32 def directives @object.directives.values end
mutation_type()
click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 24 def mutation_type permitted_root_type("mutation") end
query_type()
click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 20 def query_type permitted_root_type("query") end
subscription_type()
click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 28 def subscription_type permitted_root_type("subscription") end
types()
click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 16 def types @context.warden.types end
Private Instance Methods
permitted_root_type(op_type)
click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 38 def permitted_root_type(op_type) @context.warden.root_type_for_operation(op_type) end