Class: DBObjectDeleteTemplate

amiwo/test/db~ DBObjectDeleteTemplate


new DBObjectDeleteTemplate(name:, uri: [, options])

Parameters:
Name Type Argument Description
name: String

valid DBObject name

uri: Object

[{route, method}] object if not DELETE @ '/api/'

options Object <optional>
Properties
Name Type Description
soft: boolean

set to true to test a soft delete

hard: boolean

set to true to test a hard delete

linkedObjects: String

JSON of DBObject names associated with the linkedObjects (i.e. nested objects to be removed with the parent object)

returnedProp: String

name of the property which contains the object / objectId

check: String

set to true to test if returned deleted object is the same as before

Source:

Extends

Methods


execute()

Edit a new DBObject from class 'this._name' by calling the associated route

Overrides:
Source:
Returns:

promise wrapping the created DBObject

Type
Promise