class GraphQL::Introspection::FieldType
Public Class Methods
# File lib/graphql/introspection/field_type.rb, line 26 def self.resolve_args(object, context, include_deprecated:) args = context.types.arguments(object) args = args.reject(&:deprecation_reason) unless include_deprecated args end
# File lib/graphql/introspection/field_type.rb, line 18 def self.resolve_is_deprecated(object, _context) !!object.deprecation_reason end
Public Instance Methods
Source
# File lib/graphql/introspection/field_type.rb, line 32 def args(include_deprecated:) self.class.resolve_args(object, context, include_deprecated: include_deprecated) end
Source
# File lib/graphql/introspection/field_type.rb, line 22 def is_deprecated self.class.resolve_is_deprecated(object, context) end