class LMSGraphQL::Mutations::Canvas::PostEntryCourse

Public Instance Methods

resolve(course_id:, topic_id:, message: nil, attachment: nil) click to toggle source
# File lib/lms_graphql/mutations/canvas/post_entry_courses.rb, line 15
def resolve(course_id:, topic_id:, message: nil, attachment: nil)
  context[:canvas_api].call("POST_ENTRY_COURSES").proxy(
    "POST_ENTRY_COURSES",
    {
      "course_id": course_id,
      "topic_id": topic_id
    },
    {
      "message": message,
      "attachment": attachment
    },
  ).parsed_response
end