Sha256: ad3deac95123305d51d077bed18c7fcef71fb12561643b7e1346e9f0186153ea

Contents?: true

Size: 272 Bytes

Versions: 11

Compression:

Stored size: 272 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

11 entries across 11 versions & 1 rubygems

Version Path
graphql-0.9.4 lib/graphql/introspection/possible_types_field.rb
graphql-0.9.3 lib/graphql/introspection/possible_types_field.rb
graphql-0.9.2 lib/graphql/introspection/possible_types_field.rb
graphql-0.8.1 lib/graphql/introspection/possible_types_field.rb
graphql-0.8.0 lib/graphql/introspection/possible_types_field.rb
graphql-0.7.1 lib/graphql/introspection/possible_types_field.rb
graphql-0.7.0 lib/graphql/introspection/possible_types_field.rb
graphql-0.6.2 lib/graphql/introspection/possible_types_field.rb
graphql-0.6.1 lib/graphql/introspection/possible_types_field.rb
graphql-0.6.0 lib/graphql/introspection/possible_types_field.rb
graphql-0.5.0 lib/graph_ql/introspection/possible_types_field.rb