gitlab-org--gitlab-foss/app/graphql/resolvers/group_resolver.rb
Brett Walker f5c7c3b9ae Basic GraphQL for a group
Add new query for Groups, with new
GroupType and NamespaceType
2019-04-23 11:16:05 -05:00

13 lines
243 B
Ruby

# frozen_string_literal: true
module Resolvers
class GroupResolver < BaseResolver
prepend FullPathResolver
type Types::GroupType, null: true
def resolve(full_path:)
model_by_full_path(Group, full_path)
end
end
end