diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-22 12:16:22 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-22 12:16:22 +0000 |
commit | 96891fec6dfa20a8342a3daa25935213cfddae22 (patch) | |
tree | a09d9a3c565d28b33d0bbc1c1202061c8eb061b9 /app/graphql/resolvers | |
parent | 8bf2e2b73e5898c78dd057e02828b6acc1647a70 (diff) | |
download | gitlab-ce-96891fec6dfa20a8342a3daa25935213cfddae22.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/resolvers')
-rw-r--r-- | app/graphql/resolvers/work_items/types_resolver.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/graphql/resolvers/work_items/types_resolver.rb b/app/graphql/resolvers/work_items/types_resolver.rb new file mode 100644 index 00000000000..bacb78fd0e4 --- /dev/null +++ b/app/graphql/resolvers/work_items/types_resolver.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Resolvers + module WorkItems + class TypesResolver < BaseResolver + type Types::WorkItems::TypeType.connection_type, null: true + + def resolve + # This will require a finder in the future when groups get their work item types + # All groups use the default types for now + ::WorkItems::Type.default.order_by_name_asc + end + end + end +end |