Sha256: 42bddc3d514425722dd29eccfcab835b6434b43d4afb100c817c17fb11645afb

Contents?: true

Size: 722 Bytes

Versions: 15

Compression:

Stored size: 722 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
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
graphql-0.10.2 lib/graphql/introspection/schema_type.rb
graphql-0.10.1 lib/graphql/introspection/schema_type.rb
graphql-0.10.0 lib/graphql/introspection/schema_type.rb
graphql-0.9.5 lib/graphql/introspection/schema_type.rb
graphql-0.9.4 lib/graphql/introspection/schema_type.rb
graphql-0.9.3 lib/graphql/introspection/schema_type.rb
graphql-0.9.2 lib/graphql/introspection/schema_type.rb
graphql-0.8.1 lib/graphql/introspection/schema_type.rb
graphql-0.8.0 lib/graphql/introspection/schema_type.rb
graphql-0.7.1 lib/graphql/introspection/schema_type.rb
graphql-0.7.0 lib/graphql/introspection/schema_type.rb
graphql-0.6.2 lib/graphql/introspection/schema_type.rb
graphql-0.6.1 lib/graphql/introspection/schema_type.rb
graphql-0.6.0 lib/graphql/introspection/schema_type.rb
graphql-0.5.0 lib/graph_ql/introspection/schema_type.rb