Commit 4ad9362b authored by Alex Kalderimis's avatar Alex Kalderimis

Update errors field description

This changes the errors field description to mention that they are not
necessarily absent on failure.
parent 08654a6e
...@@ -9,7 +9,7 @@ module Mutations ...@@ -9,7 +9,7 @@ module Mutations
field :errors, [GraphQL::STRING_TYPE], field :errors, [GraphQL::STRING_TYPE],
null: false, null: false,
description: "Reasons why the mutation failed." description: "Errors encountered during execution of the mutation."
def current_user def current_user
context[:current_user] context[:current_user]
......
...@@ -33,7 +33,7 @@ type AddAwardEmojiPayload { ...@@ -33,7 +33,7 @@ type AddAwardEmojiPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
} }
...@@ -63,7 +63,7 @@ type AddProjectToSecurityDashboardPayload { ...@@ -63,7 +63,7 @@ type AddProjectToSecurityDashboardPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -128,7 +128,7 @@ type AdminSidekiqQueuesDeleteJobsPayload { ...@@ -128,7 +128,7 @@ type AdminSidekiqQueuesDeleteJobsPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -756,7 +756,7 @@ type BoardListUpdateLimitMetricsPayload { ...@@ -756,7 +756,7 @@ type BoardListUpdateLimitMetricsPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -935,7 +935,7 @@ type CreateBranchPayload { ...@@ -935,7 +935,7 @@ type CreateBranchPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
} }
...@@ -975,7 +975,7 @@ type CreateDiffNotePayload { ...@@ -975,7 +975,7 @@ type CreateDiffNotePayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -1060,7 +1060,7 @@ type CreateEpicPayload { ...@@ -1060,7 +1060,7 @@ type CreateEpicPayload {
epic: Epic epic: Epic
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
} }
...@@ -1100,7 +1100,7 @@ type CreateImageDiffNotePayload { ...@@ -1100,7 +1100,7 @@ type CreateImageDiffNotePayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -1145,7 +1145,7 @@ type CreateNotePayload { ...@@ -1145,7 +1145,7 @@ type CreateNotePayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -1185,7 +1185,7 @@ type CreateRequirementPayload { ...@@ -1185,7 +1185,7 @@ type CreateRequirementPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -1245,7 +1245,7 @@ type CreateSnippetPayload { ...@@ -1245,7 +1245,7 @@ type CreateSnippetPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -1790,7 +1790,7 @@ type DesignManagementDeletePayload { ...@@ -1790,7 +1790,7 @@ type DesignManagementDeletePayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -1840,7 +1840,7 @@ type DesignManagementUploadPayload { ...@@ -1840,7 +1840,7 @@ type DesignManagementUploadPayload {
designs: [Design!]! designs: [Design!]!
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -2030,7 +2030,7 @@ type DestroyNotePayload { ...@@ -2030,7 +2030,7 @@ type DestroyNotePayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -2065,7 +2065,7 @@ type DestroySnippetPayload { ...@@ -2065,7 +2065,7 @@ type DestroySnippetPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -2394,7 +2394,7 @@ type DismissVulnerabilityPayload { ...@@ -2394,7 +2394,7 @@ type DismissVulnerabilityPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -2947,7 +2947,7 @@ type EpicAddIssuePayload { ...@@ -2947,7 +2947,7 @@ type EpicAddIssuePayload {
epicIssue: EpicIssue epicIssue: EpicIssue
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
} }
...@@ -3472,7 +3472,7 @@ type EpicSetSubscriptionPayload { ...@@ -3472,7 +3472,7 @@ type EpicSetSubscriptionPayload {
epic: Epic epic: Epic
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
} }
...@@ -3581,7 +3581,7 @@ type EpicTreeReorderPayload { ...@@ -3581,7 +3581,7 @@ type EpicTreeReorderPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
} }
...@@ -4807,7 +4807,7 @@ type IssueSetConfidentialPayload { ...@@ -4807,7 +4807,7 @@ type IssueSetConfidentialPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -4852,7 +4852,7 @@ type IssueSetDueDatePayload { ...@@ -4852,7 +4852,7 @@ type IssueSetDueDatePayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -4897,7 +4897,7 @@ type IssueSetWeightPayload { ...@@ -4897,7 +4897,7 @@ type IssueSetWeightPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -5093,7 +5093,7 @@ type JiraImportStartPayload { ...@@ -5093,7 +5093,7 @@ type JiraImportStartPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -5216,7 +5216,7 @@ type MarkAsSpamSnippetPayload { ...@@ -5216,7 +5216,7 @@ type MarkAsSpamSnippetPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -5763,7 +5763,7 @@ type MergeRequestSetAssigneesPayload { ...@@ -5763,7 +5763,7 @@ type MergeRequestSetAssigneesPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -5813,7 +5813,7 @@ type MergeRequestSetLabelsPayload { ...@@ -5813,7 +5813,7 @@ type MergeRequestSetLabelsPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -5858,7 +5858,7 @@ type MergeRequestSetLockedPayload { ...@@ -5858,7 +5858,7 @@ type MergeRequestSetLockedPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -5903,7 +5903,7 @@ type MergeRequestSetMilestonePayload { ...@@ -5903,7 +5903,7 @@ type MergeRequestSetMilestonePayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -5948,7 +5948,7 @@ type MergeRequestSetSubscriptionPayload { ...@@ -5948,7 +5948,7 @@ type MergeRequestSetSubscriptionPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -5993,7 +5993,7 @@ type MergeRequestSetWipPayload { ...@@ -5993,7 +5993,7 @@ type MergeRequestSetWipPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -8487,7 +8487,7 @@ type RemoveAwardEmojiPayload { ...@@ -8487,7 +8487,7 @@ type RemoveAwardEmojiPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
} }
...@@ -8517,7 +8517,7 @@ type RemoveProjectFromSecurityDashboardPayload { ...@@ -8517,7 +8517,7 @@ type RemoveProjectFromSecurityDashboardPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
} }
...@@ -9856,7 +9856,7 @@ type TodoMarkDonePayload { ...@@ -9856,7 +9856,7 @@ type TodoMarkDonePayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -9906,7 +9906,7 @@ type TodoRestoreManyPayload { ...@@ -9906,7 +9906,7 @@ type TodoRestoreManyPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -9926,7 +9926,7 @@ type TodoRestorePayload { ...@@ -9926,7 +9926,7 @@ type TodoRestorePayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -9988,7 +9988,7 @@ type TodosMarkAllDonePayload { ...@@ -9988,7 +9988,7 @@ type TodosMarkAllDonePayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -10033,7 +10033,7 @@ type ToggleAwardEmojiPayload { ...@@ -10033,7 +10033,7 @@ type ToggleAwardEmojiPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -10245,7 +10245,7 @@ type UpdateAlertStatusPayload { ...@@ -10245,7 +10245,7 @@ type UpdateAlertStatusPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
} }
...@@ -10357,7 +10357,7 @@ type UpdateEpicPayload { ...@@ -10357,7 +10357,7 @@ type UpdateEpicPayload {
epic: Epic epic: Epic
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
} }
...@@ -10397,7 +10397,7 @@ type UpdateImageDiffNotePayload { ...@@ -10397,7 +10397,7 @@ type UpdateImageDiffNotePayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -10462,7 +10462,7 @@ type UpdateIssuePayload { ...@@ -10462,7 +10462,7 @@ type UpdateIssuePayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -10502,7 +10502,7 @@ type UpdateNotePayload { ...@@ -10502,7 +10502,7 @@ type UpdateNotePayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -10552,7 +10552,7 @@ type UpdateRequirementPayload { ...@@ -10552,7 +10552,7 @@ type UpdateRequirementPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
...@@ -10612,7 +10612,7 @@ type UpdateSnippetPayload { ...@@ -10612,7 +10612,7 @@ type UpdateSnippetPayload {
clientMutationId: String clientMutationId: String
""" """
Reasons why the mutation failed. Errors encountered during execution of the mutation.
""" """
errors: [String!]! errors: [String!]!
......
This diff is collapsed.
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