Module: Gitlab::Graphql::NegatableArguments

Included in:
Resolvers::MergeRequestsResolver
Defined in:
lib/gitlab/graphql/negatable_arguments.rb

Defined Under Namespace

Classes: TypeDefiner

Instance Method Summary collapse

Instance Method Details

#negated(param_key: :not, &block) ⇒ Object



40
41
42
43
44
45
46
47
48
49
50
# File 'lib/gitlab/graphql/negatable_arguments.rb', line 40

def negated(param_key: :not, &block)
  definer = ::Gitlab::Graphql::NegatableArguments::TypeDefiner.new(self, block)
  definer.define!

  argument param_key, definer.negated_params_type,
           required: false,
           description: <<~MD
               List of negated arguments.
               Warning: this argument is experimental and a subject to change in future.
           MD
end