Sha256: 4ac8d36ee9ab035d8b06c813b6802986a40e4d88897ef682899c44cc3880cdaf
Contents?: true
Size: 481 Bytes
Versions: 23
Compression:
Stored size: 481 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.fields.values if !arguments["includeDeprecated"] fields = fields.select {|f| !f.deprecation_reason } end fields } end
Version data entries
23 entries across 23 versions & 1 rubygems