Sha256: fbddd873686bc3663638677e0aeb6630240bbdcbd8452cacb6e989c326a2013b

Contents?: true

Size: 261 Bytes

Versions: 11

Compression:

Stored size: 261 Bytes

Contents

GraphQL::Introspection::InterfacesField = GraphQL::Field.define do
  description "Interfaces which this object implements"
  type -> { !types[!GraphQL::Introspection::TypeType] }
  resolve -> (target, a, c) { target.kind.object? ? target.interfaces : nil }
end

Version data entries

11 entries across 11 versions & 1 rubygems

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