Commit 1cd35327 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Fix type definitions for milestone resolvers

Add missing type definitions and fix the one for the base class
parent 0be88112
...@@ -51,13 +51,11 @@ Graphql/ResolverType: ...@@ -51,13 +51,11 @@ Graphql/ResolverType:
- 'app/graphql/resolvers/error_tracking/sentry_error_stack_trace_resolver.rb' - 'app/graphql/resolvers/error_tracking/sentry_error_stack_trace_resolver.rb'
- 'app/graphql/resolvers/group_issues_resolver.rb' - 'app/graphql/resolvers/group_issues_resolver.rb'
- 'app/graphql/resolvers/group_merge_requests_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/members_resolver.rb'
- 'app/graphql/resolvers/merge_request_pipelines_resolver.rb' - 'app/graphql/resolvers/merge_request_pipelines_resolver.rb'
- 'app/graphql/resolvers/merge_request_resolver.rb' - 'app/graphql/resolvers/merge_request_resolver.rb'
- 'app/graphql/resolvers/merge_requests_resolver.rb' - 'app/graphql/resolvers/merge_requests_resolver.rb'
- 'app/graphql/resolvers/project_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/project_pipelines_resolver.rb'
- 'app/graphql/resolvers/projects/snippets_resolver.rb' - 'app/graphql/resolvers/projects/snippets_resolver.rb'
- 'app/graphql/resolvers/snippets_resolver.rb' - 'app/graphql/resolvers/snippets_resolver.rb'
......
...@@ -6,6 +6,8 @@ module Resolvers ...@@ -6,6 +6,8 @@ module Resolvers
required: false, required: false,
description: 'Also return milestones in all subgroups and subprojects' description: 'Also return milestones in all subgroups and subprojects'
type Types::MilestoneType.connection_type, null: true
private private
def parent_id_parameters(args) def parent_id_parameters(args)
......
...@@ -25,7 +25,7 @@ module Resolvers ...@@ -25,7 +25,7 @@ module Resolvers
required: false, required: false,
description: 'A date that the milestone contains' description: 'A date that the milestone contains'
type Types::MilestoneType, null: true type Types::MilestoneType.connection_type, null: true
def resolve(**args) def resolve(**args)
validate_timeframe_params!(args) validate_timeframe_params!(args)
......
...@@ -6,6 +6,8 @@ module Resolvers ...@@ -6,6 +6,8 @@ module Resolvers
required: false, required: false,
description: "Also return milestones in the project's parent group and its ancestors" description: "Also return milestones in the project's parent group and its ancestors"
type Types::MilestoneType.connection_type, null: true
private private
def parent_id_parameters(args) 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