Class: GraphQL::Introspection::SchemaType
- Inherits:
-
Introspection::BaseObject
- Object
- Introspection::BaseObject
- GraphQL::Introspection::SchemaType
- Defined in:
- lib/graphql/introspection/schema_type.rb
Instance Method Summary collapse
- #directives ⇒ Object
- #mutation_type ⇒ Object
- #query_type ⇒ Object
- #schema_description ⇒ Object
- #subscription_type ⇒ Object
- #types ⇒ Object
Instance Method Details
#directives ⇒ Object
41 42 43 |
# File 'lib/graphql/introspection/schema_type.rb', line 41 def directives @context.types.directives.sort_by(&:graphql_name) end |
#mutation_type ⇒ Object
33 34 35 |
# File 'lib/graphql/introspection/schema_type.rb', line 33 def mutation_type @context.types.mutation_root end |
#query_type ⇒ Object
29 30 31 |
# File 'lib/graphql/introspection/schema_type.rb', line 29 def query_type @context.types.query_root end |
#schema_description ⇒ Object
18 19 20 |
# File 'lib/graphql/introspection/schema_type.rb', line 18 def schema_description context.schema.description end |
#subscription_type ⇒ Object
37 38 39 |
# File 'lib/graphql/introspection/schema_type.rb', line 37 def subscription_type @context.types.subscription_root end |
#types ⇒ Object
22 23 24 25 26 27 |
# File 'lib/graphql/introspection/schema_type.rb', line 22 def types query_types = context.types.all_types types = query_types + context.schema.extra_types types.sort_by!(&:graphql_name) types end |