summaryrefslogtreecommitdiff
path: root/app/graphql/mutations/concerns/mutations/resolves_group.rb
blob: 4306ce512f1f4d8f7fa2952635d72644c3929b13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Mutations
  module ResolvesGroup
    extend ActiveSupport::Concern

    def resolve_group(full_path:)
      resolver.resolve(full_path: full_path)
    end

    def resolver
      Resolvers::GroupResolver.new(object: nil, context: context)
    end
  end
end