Sha256: 8a355276a9131cfa04a76a83df652f5148e8ace9e8684f81395c8a125dbe7a9b

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

# frozen_string_literal: true
GraphQL::Introspection::InputFieldsField = GraphQL::Field.define do
  name "inputFields"
  type types[!GraphQL::Introspection::InputValueType]
  resolve ->(target, a, ctx) {
    if target.kind.input_object?
      ctx.warden.input_fields(target)
    else
      nil
    end
  }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
graphql-1.3.0 lib/graphql/introspection/input_fields_field.rb