class LMSGraphQL::Mutations::Canvas::PostReplyGroup

Public Instance Methods

resolve(group_id:, topic_id:, entry_id:, message: nil, attachment: nil) click to toggle source
# File lib/lms_graphql/mutations/canvas/post_reply_groups.rb, line 16
def resolve(group_id:, topic_id:, entry_id:, message: nil, attachment: nil)
  context[:canvas_api].call("POST_REPLY_GROUPS").proxy(
    "POST_REPLY_GROUPS",
    {
      "group_id": group_id,
      "topic_id": topic_id,
      "entry_id": entry_id
    },
    {
      "message": message,
      "attachment": attachment
    },
  ).parsed_response
end