Class: LMSGraphQL::Mutations::Canvas::RemoveContentShare

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

Instance Method Summary collapse

Instance Method Details

#resolve(user_id:, id:) ⇒ Object



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

def resolve(user_id:, id:)
  context[:canvas_api].call("REMOVE_CONTENT_SHARE").proxy(
    "REMOVE_CONTENT_SHARE",
    {
      "user_id": user_id,
      "id": id
    },
    {},
  ).parsed_response
end