class LMSGraphQL::Mutations::Canvas::AddMessage

Public Instance Methods

resolve(id:, body:, attachment_ids: nil, media_comment_id: nil, media_comment_type: nil, recipients: nil, included_messages: nil, user_note: nil) click to toggle source
# File lib/lms_graphql/mutations/canvas/add_message.rb, line 19
def resolve(id:, body:, attachment_ids: nil, media_comment_id: nil, media_comment_type: nil, recipients: nil, included_messages: nil, user_note: nil)
  context[:canvas_api].call("ADD_MESSAGE").proxy(
    "ADD_MESSAGE",
    {
      "id": id
    },
    {
      "body": body,
      "attachment_ids": attachment_ids,
      "media_comment_id": media_comment_id,
      "media_comment_type": media_comment_type,
      "recipients": recipients,
      "included_messages": included_messages,
      "user_note": user_note
    },
  ).parsed_response
end