You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: discounts.rb
    path of file: ./repos/demanda/backend/app/graphql/resolvers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Resolvers
  class Discounts < Resolvers::Base
    type '[Types::Discount]', null: true

    description 'Find all discounts or f
    
    def resolve(uuid:, name:, lang:, active:)
      @db_query = current_account.discounts
      filter_name(name)
      filter_uuid(uuid)
      filter_active(active)
      # filter_translation(lang)

      db_query.order(:name)
    end