Class: LMSGraphQL::Mutations::Canvas::PostEntryGroup

Inherits:
BaseMutation
  • 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



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

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