Sha256: cb4f868fed6ca14084371577738abac4ea21c8cbcea3769e9598c98e21b9126a

Contents?: true

Size: 273 Bytes

Versions: 15

Compression:

Stored size: 273 Bytes

Contents

GraphQL::Introspection::PossibleTypesField = GraphQL::Field.define do
  description "Types which compose this Union or Interface"
  type -> { types[!GraphQL::Introspection::TypeType] }
  resolve -> (target, a, c) { target.kind.resolves? ? target.possible_types : nil }
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
graphql-0.12.1 lib/graphql/introspection/possible_types_field.rb
graphql-0.12.0 lib/graphql/introspection/possible_types_field.rb
graphql-0.11.1 lib/graphql/introspection/possible_types_field.rb
graphql-0.11.0 lib/graphql/introspection/possible_types_field.rb
graphql-0.10.9 lib/graphql/introspection/possible_types_field.rb
graphql-0.10.8 lib/graphql/introspection/possible_types_field.rb
graphql-0.10.7 lib/graphql/introspection/possible_types_field.rb
graphql-0.10.6 lib/graphql/introspection/possible_types_field.rb
graphql-0.10.5 lib/graphql/introspection/possible_types_field.rb
graphql-0.10.4 lib/graphql/introspection/possible_types_field.rb
graphql-0.10.3 lib/graphql/introspection/possible_types_field.rb
graphql-0.10.2 lib/graphql/introspection/possible_types_field.rb
graphql-0.10.1 lib/graphql/introspection/possible_types_field.rb
graphql-0.10.0 lib/graphql/introspection/possible_types_field.rb
graphql-0.9.5 lib/graphql/introspection/possible_types_field.rb