summaryrefslogtreecommitdiff
path: root/lib/bulk_imports/groups/pipelines/group_pipeline.rb
blob: 2b7d0ef765882e0e45ba9c33f6a88ecb1a0c4ec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module BulkImports
  module Groups
    module Pipelines
      class GroupPipeline
        include Pipeline

        extractor Common::Extractors::GraphqlExtractor, query: Graphql::GetGroupQuery

        transformer Common::Transformers::GraphqlCleanerTransformer
        transformer Common::Transformers::UnderscorifyKeysTransformer
        transformer Groups::Transformers::GroupAttributesTransformer

        loader Groups::Loaders::GroupLoader
      end
    end
  end
end