Class: LMSGraphQL::Mutations::Canvas::InviteOthersToGroup

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

Instance Method Summary collapse

Instance Method Details

#resolve(group_id:, invitees:) ⇒ Object



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

def resolve(group_id:, invitees:)
  context[:canvas_api].call("INVITE_OTHERS_TO_GROUP").proxy(
    "INVITE_OTHERS_TO_GROUP",
    {
      "group_id": group_id
    },
    {
      "invitees": invitees
    },
  ).parsed_response
end