class GraphQL::Introspection::FieldType
Public Class Methods
(GraphQL::Schema::Field object, GraphQL::Query::Context context, include_deprecated: bool) → Array[GraphQL::Schema::Argument]
Source
# File lib/graphql/introspection/field_type.rb, line 29 def self.resolve_args(object, context, include_deprecated:) args = context.types.arguments(object) args = args.reject(&:deprecation_reason) unless include_deprecated args end
(GraphQL::Schema::Field object, GraphQL::Query::Context _context) → bool
Source
# File lib/graphql/introspection/field_type.rb, line 19 def self.resolve_is_deprecated(object, _context) !!object.deprecation_reason end
Public Instance Methods
(include_deprecated: bool) → Array[GraphQL::Schema::Argument]
Source
# File lib/graphql/introspection/field_type.rb, line 36 def args(include_deprecated:) self.class.resolve_args(object, context, include_deprecated: include_deprecated) end
→ bool
Source
# File lib/graphql/introspection/field_type.rb, line 24 def is_deprecated self.class.resolve_is_deprecated(object, context) end