Class: LMSGraphQL::Mutations::Canvas::MarkEntryAsUnreadGroup

Inherits:
BaseMutation
  • Object
show all
Defined in:
lib/lms_graphql/mutations/canvas/mark_entry_as_unread_groups.rb

Instance Method Summary collapse

Instance Method Details

#resolve(group_id:, topic_id:, entry_id:, forced_read_state: nil) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/lms_graphql/mutations/canvas/mark_entry_as_unread_groups.rb', line 15

def resolve(group_id:, topic_id:, entry_id:, forced_read_state: nil)
  context[:canvas_api].call("MARK_ENTRY_AS_UNREAD_GROUPS").proxy(
    "MARK_ENTRY_AS_UNREAD_GROUPS",
    {
      "group_id": group_id,
      "topic_id": topic_id,
      "entry_id": entry_id,
      "forced_read_state": forced_read_state
    },
    {},
  ).parsed_response
end