diff options
Diffstat (limited to 'lib/bulk_imports/groups/graphql/get_group_query.rb')
-rw-r--r-- | lib/bulk_imports/groups/graphql/get_group_query.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/bulk_imports/groups/graphql/get_group_query.rb b/lib/bulk_imports/groups/graphql/get_group_query.rb index 6852e25c87f..911b2b67d8c 100644 --- a/lib/bulk_imports/groups/graphql/get_group_query.rb +++ b/lib/bulk_imports/groups/graphql/get_group_query.rb @@ -3,8 +3,12 @@ module BulkImports module Groups module Graphql - module GetGroupQuery - extend self + class GetGroupQuery + attr_reader :context + + def initialize(context:) + @context = context + end def to_s <<-'GRAPHQL' @@ -29,7 +33,7 @@ module BulkImports GRAPHQL end - def variables(context) + def variables { full_path: context.entity.source_full_path } end |