Sha256: 3975590538f88266cc5f72c6cebe0fc52ae3de24c86152a9130fdfadda3eba6c
Contents?: true
Size: 610 Bytes
Versions: 19
Compression:
Stored size: 610 Bytes
Contents
GraphQL::Introspection::InputValueType = GraphQL::ObjectType.define do name "__InputValue" description "An input for a field or InputObject" field :name, !types.String, "The key for this value" field :description, types.String, "What this value is used for" field :type, !GraphQL::Introspection::TypeType, "The expected type for this value" field :defaultValue, types.String, "The value applied if no other value is provided" do resolve -> (obj, args, ctx) { value = obj.default_value if value.is_a?(String) "\"#{value}\"" else value end } end end
Version data entries
19 entries across 19 versions & 1 rubygems