Class: LMS::GraphQL::Mutations::Canvas::MarkTopicAsUnreadCourse

Inherits:
CanvasBaseMutation
  • Object
show all
Defined in:
lib/lms/graphql/mutations/canvas/mark_topic_as_unread_courses.rb

Instance Method Summary collapse

Instance Method Details

#resolve(course_id:, topic_id:) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/lms/graphql/mutations/canvas/mark_topic_as_unread_courses.rb', line 11

def resolve(course_id:, topic_id:)
  ctx[:canvas_api].proxy(
    "MARK_TOPIC_AS_UNREAD_COURSES",
    {
      "course_id": course_id,
      "topic_id": topic_id              },
    nil,
  ).parsed_response
end