Class: LMS::GraphQL::Mutations::Canvas::UpdateBookmark

Inherits:
CanvasBaseMutation
  • Object
show all
Defined in:
lib/lms/graphql/mutations/canvas/update_bookmark.rb

Instance Method Summary collapse

Instance Method Details

#resolve(id:, name: nil, url: nil, position: nil, data: nil) ⇒ Object



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

def resolve(id:, name: nil, url: nil, position: nil, data: nil)
  ctx[:canvas_api].proxy(
    "UPDATE_BOOKMARK",
    {
      "id": id,
      "name": name,
      "url": url,
      "position": position,
      "data": data              },
    nil,
  ).parsed_response
end