Class: GraphQL::Introspection::DirectiveType
- Inherits:
-
Introspection::BaseObject
- Object
- Introspection::BaseObject
- GraphQL::Introspection::DirectiveType
- Defined in:
- lib/graphql/introspection/directive_type.rb
Class Method Summary collapse
-
.resolve_args(object, context, include_deprecated:) ⇒ Object
: (singleton(GraphQL::Schema::Directive) object, GraphQL::Query::Context context, include_deprecated: bool) -> Array.
Instance Method Summary collapse
-
#args(include_deprecated:) ⇒ Object
: (include_deprecated: bool) -> Array.
Class Method Details
.resolve_args(object, context, include_deprecated:) ⇒ Object
: (singleton(GraphQL::Schema::Directive) object, GraphQL::Query::Context context, include_deprecated: bool) -> Array
27 28 29 30 31 |
# File 'lib/graphql/introspection/directive_type.rb', line 27 def self.resolve_args(object, context, include_deprecated:) args = context.types.arguments(object) args = args.reject(&:deprecation_reason) unless include_deprecated args end |
Instance Method Details
#args(include_deprecated:) ⇒ Object
: (include_deprecated: bool) -> Array
34 35 36 |
# File 'lib/graphql/introspection/directive_type.rb', line 34 def args(include_deprecated:) self.class.resolve_args(object, context, include_deprecated: include_deprecated) end |