module Oxide::Directives
Defined in:
oxide/directives/deprecated_directive.croxide/directives/include_directive.cr
oxide/directives/skip_directive.cr
oxide/directives/specified_by.cr
Constant Summary
-
DeprecatedDirective =
Oxide::Directive.new(name: "deprecated", arguments: {"reason" => Oxide::Argument.new(type: Oxide::Types::StringType.new, default_value: "No longer supported")}, locations: [Directive::Location::FIELD_DEFINITION, Directive::Location::ARGUMENT_DEFINITION, Directive::Location::INPUT_FIELD_DEFINITION, Directive::Location::ENUM_VALUE])
-
IncludeDirective =
Oxide::Directive.new(name: "include", arguments: {"if" => Oxide::Argument.new(type: Oxide::Types::NonNullType.new(of_type: Oxide::Types::BooleanType.new))}, locations: [Directive::Location::FIELD, Directive::Location::FRAGMENT_SPREAD, Directive::Location::INLINE_FRAGMENT])
-
SkipDirective =
Oxide::Directive.new(name: "skip", arguments: {"if" => Oxide::Argument.new(type: Oxide::Types::NonNullType.new(of_type: Oxide::Types::BooleanType.new))}, locations: [Directive::Location::FIELD, Directive::Location::FRAGMENT_SPREAD, Directive::Location::INLINE_FRAGMENT])
-
SpecifiedByDirective =
Oxide::Directive.new(name: "specifiedBy", arguments: {"url" => Oxide::Argument.new(type: Oxide::Types::NonNullType.new(of_type: Oxide::Types::StringType.new))}, locations: [Directive::Location::SCALAR])