Sha256: cb992fa3f69ad06bf97be1afff3ffa7f2f1dc00a19831834d16b4282bdc40c4c

Contents?: true

Size: 293 Bytes

Versions: 40

Compression:

Stored size: 293 Bytes

Contents

# frozen_string_literal: true
GraphQL::Introspection::PossibleTypesField = GraphQL::Field.define do
  type -> { types[!GraphQL::Introspection::TypeType] }
  resolve ->(target, args, ctx) {
    if target.kind.resolves?
      ctx.warden.possible_types(target)
    else
      nil
    end
  }
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
graphql-1.8.0.pre2 lib/graphql/introspection/possible_types_field.rb
graphql-1.7.7 lib/graphql/introspection/possible_types_field.rb
graphql-1.8.0.pre1 lib/graphql/introspection/possible_types_field.rb
graphql-1.7.6 lib/graphql/introspection/possible_types_field.rb
graphql-1.7.5 lib/graphql/introspection/possible_types_field.rb
graphql-1.7.4 lib/graphql/introspection/possible_types_field.rb
graphql-1.7.3 lib/graphql/introspection/possible_types_field.rb
graphql-1.7.2 lib/graphql/introspection/possible_types_field.rb
graphql-1.7.1 lib/graphql/introspection/possible_types_field.rb
graphql-1.7.0 lib/graphql/introspection/possible_types_field.rb
graphql-1.6.8 lib/graphql/introspection/possible_types_field.rb
graphql-1.6.7 lib/graphql/introspection/possible_types_field.rb
graphql-1.6.6 lib/graphql/introspection/possible_types_field.rb
graphql-1.6.5 lib/graphql/introspection/possible_types_field.rb
graphql-1.6.4 lib/graphql/introspection/possible_types_field.rb
graphql-1.5.15 lib/graphql/introspection/possible_types_field.rb
graphql-1.6.3 lib/graphql/introspection/possible_types_field.rb
graphql-1.6.2 lib/graphql/introspection/possible_types_field.rb
graphql-1.6.1 lib/graphql/introspection/possible_types_field.rb
graphql-1.6.0 lib/graphql/introspection/possible_types_field.rb