diff options
Diffstat (limited to 'lib/bulk_imports/projects/graphql/queryable.rb')
-rw-r--r-- | lib/bulk_imports/projects/graphql/queryable.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/bulk_imports/projects/graphql/queryable.rb b/lib/bulk_imports/projects/graphql/queryable.rb index a897632dff3..bd3116cb838 100644 --- a/lib/bulk_imports/projects/graphql/queryable.rb +++ b/lib/bulk_imports/projects/graphql/queryable.rb @@ -4,7 +4,13 @@ module BulkImports module Projects module Graphql module Queryable - def variables(context) + attr_reader :context + + def initialize(context:) + @context = context + end + + def variables { full_path: context.entity.source_full_path } end |