Commit d1ca51b6 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'fix-milestone-resolvers-types' into 'master'

Fix type definitions for milestone resolvers

See merge request gitlab-org/gitlab!47603
parents b1ab075f 1cd35327
......@@ -49,13 +49,11 @@ Graphql/ResolverType:
- 'app/graphql/resolvers/error_tracking/sentry_error_stack_trace_resolver.rb'
- 'app/graphql/resolvers/group_issues_resolver.rb'
- 'app/graphql/resolvers/group_merge_requests_resolver.rb'
- 'app/graphql/resolvers/group_milestones_resolver.rb'
- 'app/graphql/resolvers/members_resolver.rb'
- 'app/graphql/resolvers/merge_request_pipelines_resolver.rb'
- 'app/graphql/resolvers/merge_request_resolver.rb'
- 'app/graphql/resolvers/merge_requests_resolver.rb'
- 'app/graphql/resolvers/project_merge_requests_resolver.rb'
- 'app/graphql/resolvers/project_milestones_resolver.rb'
- 'app/graphql/resolvers/project_pipelines_resolver.rb'
- 'app/graphql/resolvers/projects/snippets_resolver.rb'
- 'app/graphql/resolvers/snippets_resolver.rb'
......
......@@ -6,6 +6,8 @@ module Resolvers
required: false,
description: 'Also return milestones in all subgroups and subprojects'
type Types::MilestoneType.connection_type, null: true
private
def parent_id_parameters(args)
......
......@@ -25,7 +25,7 @@ module Resolvers
required: false,
description: 'A date that the milestone contains'
type Types::MilestoneType, null: true
type Types::MilestoneType.connection_type, null: true
def resolve(**args)
validate_timeframe_params!(args)
......
......@@ -6,6 +6,8 @@ module Resolvers
required: false,
description: "Also return milestones in the project's parent group and its ancestors"
type Types::MilestoneType.connection_type, null: true
private
def parent_id_parameters(args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment