Sha256: 4055a25d5a2b03ff70759f298c690a93918fd7a7194e23cd2ca19cc3204c01d6
Contents?: true
Size: 836 Bytes
Versions: 6
Compression:
Stored size: 836 Bytes
Contents
# frozen_string_literal: true GraphQL::Introspection::InputValueType = GraphQL::ObjectType.define do name "__InputValue" description "Arguments provided to Fields or Directives and the input fields of an "\ "InputObject are represented as Input Values which describe their type and "\ "optionally a default value." field :name, !types.String field :description, types.String field :type, !GraphQL::Introspection::TypeType field :defaultValue, types.String, "A GraphQL-formatted string representing the default value for this input value." do resolve ->(obj, args, ctx) { if obj.default_value? value = obj.default_value value.nil? ? 'null' : GraphQL::Language.serialize(obj.type.coerce_result(value)) else nil end } end introspection true end
Version data entries
6 entries across 6 versions & 1 rubygems