Sha256: 36c0f37a98a1dd7891ac2109f62e228f17ae887cad8c5f519cb15211897c299d

Contents?: true

Size: 380 Bytes

Versions: 10

Compression:

Stored size: 380 Bytes

Contents

module GraphQL
  module Introspection
    # A wrapper to implement `__schema`
    class SchemaField
      def self.create(wrapped_type)
        GraphQL::Field.define do
          name("__schema")
          description("This GraphQL schema")
          type(!GraphQL::Introspection::SchemaType)
          resolve ->(o, a, c) { wrapped_type }
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
graphql-1.2.6 lib/graphql/introspection/schema_field.rb
graphql-1.2.5 lib/graphql/introspection/schema_field.rb
graphql-1.2.4 lib/graphql/introspection/schema_field.rb
graphql-1.2.3 lib/graphql/introspection/schema_field.rb
graphql-1.2.2 lib/graphql/introspection/schema_field.rb
graphql-1.2.1 lib/graphql/introspection/schema_field.rb
graphql-1.2.0 lib/graphql/introspection/schema_field.rb
graphql-1.1.0 lib/graphql/introspection/schema_field.rb
graphql-1.0.0 lib/graphql/introspection/schema_field.rb
graphql-0.19.4 lib/graphql/introspection/schema_field.rb