summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/group_variable_connection_type.rb
blob: 1f55dde669761052e2797d0ad51e5114b9bff341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module Types
  module Ci
    # rubocop: disable Graphql/AuthorizeTypes
    class GroupVariableConnectionType < GraphQL::Types::Relay::BaseConnection
      field :limit, GraphQL::Types::Int,
        null: false,
        description: 'Maximum amount of group CI/CD variables.'

      def limit
        ::Plan.default.actual_limits.group_ci_variables
      end
    end
    # rubocop: enable Graphql/AuthorizeTypes
  end
end