Class: GraphQL::Introspection::SchemaField
- Inherits:
-
Object
- Object
- GraphQL::Introspection::SchemaField
- Defined in:
- lib/graph_ql/introspection/schema_field.rb
Overview
A wrapper to implement __schema
Constant Summary collapse
- DEFINITION =
Proc.new { |f, wrapped_type| f.name("__schema") f.description("This GraphQL schema") f.type(!GraphQL::Introspection::SchemaType) f.resolve -> (o, a, c) { wrapped_type } }
Class Method Summary collapse
Class Method Details
.create(wrapped_type) ⇒ Object
10 11 12 |
# File 'lib/graph_ql/introspection/schema_field.rb', line 10 def self.create(wrapped_type) GraphQL::Field.new { |f| DEFINITION.call(f, wrapped_type) } end |