Skip to content

Add new createDiscussion GraphQL mutation

Phil Hughes requested to merge ph/393501/graphqlCreateNoteType into master

What does this MR do and why?

Creates a new GraphQL mutation to allow for discussions to be created

Example query:

mutation createNewDiscussion {
  createDiscussion(input: { body: "This is a discussion", noteableId: "gid://gitlab/MergeRequest/97"  }) {
    note {
      id
    }
  }
}

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

#393501 (closed)

Edited by Phil Hughes

Merge request reports

Loading