Class: LMSGraphQL::Mutations::Canvas::UpdateContentShare

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

Instance Method Summary collapse

Instance Method Details

#resolve(user_id:, id:, read_state: nil) ⇒ Object



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

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