Class: LMS::GraphQL::Mutations::Canvas::PostEntryGroup

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

Instance Method Summary collapse

Instance Method Details

#resolve(group_id:, topic_id:, message: nil, attachment: nil) ⇒ Object



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/lms/graphql/mutations/canvas/post_entry_groups.rb', line 13

def resolve(group_id:, topic_id:, message: nil, attachment: nil)
  ctx[:canvas_api].proxy(
    "POST_ENTRY_GROUPS",
    {
      "group_id": group_id,
      "topic_id": topic_id,
      "message": message,
      "attachment": attachment              },
    nil,
  ).parsed_response
end