Sha256: 1cc0170b70ed72ef0a61a57a121bcce3499e529d3bdcafdb8cdbf43ff96efc67
Contents?: true
Size: 494 Bytes
Versions: 29
Compression:
Stored size: 494 Bytes
Contents
GraphQL::Introspection::FieldsField = GraphQL::Field.define do description "List of fields on this object" type -> { types[!GraphQL::Introspection::FieldType] } argument :includeDeprecated, GraphQL::BOOLEAN_TYPE, default_value: false resolve -> (object, arguments, context) { return nil if !object.kind.fields? fields = object.all_fields if !arguments["includeDeprecated"] fields = fields.select {|f| !f.deprecation_reason } end fields.sort_by(&:name) } end
Version data entries
29 entries across 29 versions & 1 rubygems