class LMSGraphQL::Mutations::Canvas::CreateContentShare

Public Instance Methods

resolve(user_id:, receiver_ids:, content_type:, content_id:) click to toggle source
# File lib/lms_graphql/mutations/canvas/create_content_share.rb, line 15
def resolve(user_id:, receiver_ids:, content_type:, content_id:)
  context[:canvas_api].call("CREATE_CONTENT_SHARE").proxy(
    "CREATE_CONTENT_SHARE",
    {
      "user_id": user_id
    },
    {
      "receiver_ids": receiver_ids,
      "content_type": content_type,
      "content_id": content_id
    },
  ).parsed_response
end