class GraphQL::Introspection::SchemaType
Public Instance Methods
directives()
click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 31 def directives @object.directives.values end
mutation_type()
click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 23 def mutation_type permitted_root_type("mutation") end
query_type()
click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 19 def query_type permitted_root_type("query") end
subscription_type()
click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 27 def subscription_type permitted_root_type("subscription") end
types()
click to toggle source
# File lib/graphql/introspection/schema_type.rb, line 15 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 37 def permitted_root_type(op_type) @context.warden.root_type_for_operation(op_type) end