debian-mirror-gitlab/lib/bulk_imports/projects/graphql/queryable.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
526 B
Ruby
Raw Normal View History

2022-01-26 12:08:38 +05:30
# frozen_string_literal: true
module BulkImports
module Projects
module Graphql
module Queryable
2022-04-04 11:22:00 +05:30
attr_reader :context
def initialize(context:)
@context = context
end
def variables
2022-01-26 12:08:38 +05:30
{ full_path: context.entity.source_full_path }
end
def base_path
%w[data project]
end
def data_path
base_path
end
def page_info_path
base_path << 'page_info'
end
end
end
end
end