Class: LMSGraphQL::Mutations::Canvas::DeleteFile

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

Instance Method Summary collapse

Instance Method Details

#resolve(id:, replace: nil) ⇒ Object



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

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