diff options
author | Brett Walker <bwalker@gitlab.com> | 2019-04-17 18:43:19 -0500 |
---|---|---|
committer | Brett Walker <bwalker@gitlab.com> | 2019-04-23 11:16:05 -0500 |
commit | f5c7c3b9ae8b91662830f46b595ce1512050be89 (patch) | |
tree | 7f5ce3d0de713eb637b83a7d94281ea1c101211e /app/graphql/resolvers/group_resolver.rb | |
parent | 951ffd9ddeeb6154a5929849f9b2f4c92c24c2a4 (diff) | |
download | gitlab-ce-f5c7c3b9ae8b91662830f46b595ce1512050be89.tar.gz |
Basic GraphQL for a group
Add new query for Groups, with new
GroupType and NamespaceType
Diffstat (limited to 'app/graphql/resolvers/group_resolver.rb')
-rw-r--r-- | app/graphql/resolvers/group_resolver.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/graphql/resolvers/group_resolver.rb b/app/graphql/resolvers/group_resolver.rb new file mode 100644 index 00000000000..4260e18829e --- /dev/null +++ b/app/graphql/resolvers/group_resolver.rb @@ -0,0 +1,13 @@ +# 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 |