Sha256: 42f460b75a0cab747986c803c2081a1d8e08c55ea15f9e3243f29ea9f1473c7b

Contents?: true

Size: 884 Bytes

Versions: 40

Compression:

Stored size: 884 Bytes

Contents

GraphQL::Introspection::SchemaType = GraphQL::ObjectType.define do
  name "__Schema"
  description "A GraphQL schema"

  field :types, !types[!GraphQL::Introspection::TypeType], "Types in this schema" do
    resolve -> (obj, arg, ctx) { obj.types.values }
  end

  field :directives, !types[!GraphQL::Introspection::DirectiveType], "Directives in this schema" do
    resolve -> (obj, arg, ctx) { obj.directives.values }
  end

  field :queryType, !GraphQL::Introspection::TypeType, "The query root of this schema" do
    resolve -> (obj, arg, ctx) { obj.query }
  end

  field :mutationType, GraphQL::Introspection::TypeType, "The mutation root of this schema" do
    resolve -> (obj, arg, ctx) { obj.mutation }
  end

  field :subscriptionType, GraphQL::Introspection::TypeType, "The subscription root of this schema" do
    resolve -> (obj, arg, ctx) { obj.subscription }
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
graphql-0.18.15 lib/graphql/introspection/schema_type.rb
graphql-0.18.14 lib/graphql/introspection/schema_type.rb
graphql-0.18.13 lib/graphql/introspection/schema_type.rb
graphql-0.18.12 lib/graphql/introspection/schema_type.rb
graphql-0.18.11 lib/graphql/introspection/schema_type.rb
graphql-0.18.10 lib/graphql/introspection/schema_type.rb
graphql-0.18.9 lib/graphql/introspection/schema_type.rb
graphql-0.18.8 lib/graphql/introspection/schema_type.rb
graphql-0.18.7 lib/graphql/introspection/schema_type.rb
graphql-0.18.6 lib/graphql/introspection/schema_type.rb
graphql-0.18.5 lib/graphql/introspection/schema_type.rb
graphql-0.18.4 lib/graphql/introspection/schema_type.rb
graphql-0.18.3 lib/graphql/introspection/schema_type.rb
graphql-0.18.2 lib/graphql/introspection/schema_type.rb
graphql-0.18.1 lib/graphql/introspection/schema_type.rb
graphql-0.18.0 lib/graphql/introspection/schema_type.rb
graphql-0.17.2 lib/graphql/introspection/schema_type.rb
graphql-0.17.1 lib/graphql/introspection/schema_type.rb
graphql-0.17.0 lib/graphql/introspection/schema_type.rb
graphql-0.16.1 lib/graphql/introspection/schema_type.rb