{"record":{"id":"59dfa2ec23e79c65","repo":"gitlabhq/gitlabhq","slug":"you-must-provide-at-least-one-filter-argument-for","errorCode":null,"errorMessage":"You must provide at least one filter argument for this query","messagePattern":"You must provide at least one filter argument for this query","errorType":"validation","errorClass":"Gitlab::Graphql::Errors::ArgumentError","httpStatus":null,"severity":"error","filePath":"app/graphql/resolvers/concerns/issuables/root_arguments.rb","lineNumber":11,"sourceCode":"# frozen_string_literal: true\n\nmodule Issuables\n  module RootArguments\n    extend ActiveSupport::Concern\n\n    NON_FILTER_ARGUMENTS = %i[sort lookahead include_archived include_subepics].freeze\n\n    def ready?(**args)\n      unless filter_provided?(args)\n        raise Gitlab::Graphql::Errors::ArgumentError, _('You must provide at least one filter argument for this query')\n      end\n\n      super\n    end\n\n    private\n\n    def filter_provided?(args)\n      args.except(*NON_FILTER_ARGUMENTS).each_value.any? { |value| value == false || value.present? }\n    end\n\n    def prepare_finder_params(args)\n      super.tap do |prepared|\n        prepared[:non_archived] = !prepared.delete(:include_archived)\n      end\n    end\n  end\nend","sourceCodeStart":1,"sourceCodeEnd":29,"githubUrl":"https://github.com/gitlabhq/gitlabhq/blob/55ee20384a1f55cb0e362dee1d07149613b1b9bf/app/graphql/resolvers/concerns/issuables/root_arguments.rb#L1-L29","documentation":"Error \"You must provide at least one filter argument for this query\" thrown in gitlabhq/gitlabhq.","triggerScenarios":"Thrown at app/graphql/resolvers/concerns/issuables/root_arguments.rb:11 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"55ee20384a1f55cb0e362dee1d07149613b1b9bf","analyzedAt":"2026-08-21T14:22:27.782Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}