Class: LMSGraphQL::Mutations::Canvas::MarkAllEntriesAsUnreadCourse

Inherits:
CanvasBaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/mark_all_entries_as_unread_courses.rb

Instance Method Summary collapse

Instance Method Details

#resolve(course_id:, topic_id:, forced_read_state: nil) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/lms_graphql/mutations/canvas/mark_all_entries_as_unread_courses.rb', line 11

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