Sha256: dfe2404e0af416ada6db8535194c4798342cdce13a4c969d45a92ef055c8bf23

Contents?: true

Size: 317 Bytes

Versions: 11

Compression:

Stored size: 317 Bytes

Contents

GraphQL::Introspection::InputFieldsField = GraphQL::Field.define do
  name "inputFields"
  description "fields on this input object"
  type types[GraphQL::Introspection::InputValueType]
  resolve -> (target, a, c) {
    if target.kind.input_object?
      target.input_fields.values
    else
      nil
    end
  }
end

Version data entries

11 entries across 11 versions & 1 rubygems

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